P
PromisedOyster
I have setup a read-only Access query and that works well. This
basically returns 1 row and 2 columns from a database table.
I now want to put these two values into two seperate VB variables (for
holding parameter options).
Here is what I have done:
dim opt1 as string
dim opt2 as string
DoCmd.OpenQuery "myQuery", acNormal, acReadOnly
opt1 = DoCmd.??? ' Somehow get col1, row 1 from the query
opt1 = DoCmd.???' Somehow get col2, row 1 from the query
DoCmd.Close acQuery,"myQuery", acSaveNo
Can anyone fill in the Question marks. I assume it should be simple?
basically returns 1 row and 2 columns from a database table.
I now want to put these two values into two seperate VB variables (for
holding parameter options).
Here is what I have done:
dim opt1 as string
dim opt2 as string
DoCmd.OpenQuery "myQuery", acNormal, acReadOnly
opt1 = DoCmd.??? ' Somehow get col1, row 1 from the query
opt1 = DoCmd.???' Somehow get col2, row 1 from the query
DoCmd.Close acQuery,"myQuery", acSaveNo
Can anyone fill in the Question marks. I assume it should be simple?