Hi Guys,
I am trying to use an UPDATE command to change a record. The UPDATE result is dependant on two variables. One to indicate which record ( j ) and one to indicate the information to put in the record ( Comp )
this is what ive written:
DoCmd.RunSQL "UPDATE [Command Data Table] SET [Command Word] = (comp) WHERE [Primary] = (j)"
But when I run it, it comes up with a box asking me to 'enter parameter value' rather than realise i'm refering to a variable thats already got a value.
Any help?
Cheers,
I am trying to use an UPDATE command to change a record. The UPDATE result is dependant on two variables. One to indicate which record ( j ) and one to indicate the information to put in the record ( Comp )
this is what ive written:
DoCmd.RunSQL "UPDATE [Command Data Table] SET [Command Word] = (comp) WHERE [Primary] = (j)"
But when I run it, it comes up with a box asking me to 'enter parameter value' rather than realise i'm refering to a variable thats already got a value.
Any help?
Cheers,