D
Dom
Dear Newsgroup,
I'd like to read data from a table into a variable in my
VB code using an SQL statement like:
"SELECT Field1 FROM table WHERE Field2 = 'MyValue';"
I don't seem to be able to make it work by typing
Docmd.RunSQL "SELECT Field1 FROM table WHERE Field2
= 'MyValue';"
as this raises an exception.
Can anyone point me in the right direction. By the way
Field1 and Field2 of the table are both of type Text.
Regards
Dom
I'd like to read data from a table into a variable in my
VB code using an SQL statement like:
"SELECT Field1 FROM table WHERE Field2 = 'MyValue';"
I don't seem to be able to make it work by typing
Docmd.RunSQL "SELECT Field1 FROM table WHERE Field2
= 'MyValue';"
as this raises an exception.
Can anyone point me in the right direction. By the way
Field1 and Field2 of the table are both of type Text.
Regards
Dom