locked
Compile Error: Wrong Number of arguments or Invalid property assignment

    Pertanyaan

  • I am getting above mentioned error at following line of code

    Source.OpenCurrentDatabase SDatabase,False SourcePwd

    where

    Source is defined as Source Database
    SDatabase is defined as Source Database path
    SourcePwd is defined as Source Database Password

    I have put references to Active X 2.5 library & Microsoft Access 9.0 Objects Library

    Can anyone help ?

    Thanks,
    27 Desember 2008 14:39

Semua Balasan

  • Forgot a comma between False and SourcePwd?

    Source.OpenCurrentDatabase SDatabase, False, SourcePwd
    Ewald - Please remember to mark the replies as answers if they help.
    27 Desember 2008 15:00
  • There is a comma between False & SourcePwd it is typing mistake in the thread.

    Actually before I formatted my HDD all went smoothly, I am getting this error after format. I don't know how this error comes in. Please help.

    Dharmesh Joshi
    29 Desember 2008 5:56
  • Did you re-install the correct version of MS Access on your machine?
    Ewald - Please remember to mark the replies as answers if they help.
    29 Desember 2008 8:30
  • I have installed MS Office 2000 premium. I reinstalled Office also, but it didn't help.

    Thanks,

    Dharmesh Joshi
    29 Desember 2008 13:26