VickyLeigh
Technical User
I have a Form in which I want the OnChange property to run some VB code which sets a variable to a value from a Table
Thus I have something like
Dim variablehere as integer
set variablehere = DoCmd.RunSql "Select Field1 from Table1;"
The second bit doesn't work - can someone tell me the code that will set variablehere to Field1 (Note - there will only over be one record in Table1
Thanks for any help [sig][/sig]
Thus I have something like
Dim variablehere as integer
set variablehere = DoCmd.RunSql "Select Field1 from Table1;"
The second bit doesn't work - can someone tell me the code that will set variablehere to Field1 (Note - there will only over be one record in Table1
Thanks for any help [sig][/sig]