G
Guest
Im trying to run a query in vba and take the result of the query and set a
text box on a form to that value..I try this code:
eventholder = DoCmd.RunSQL("select max([event id]) from events")
Forms![LogIn]![ActiveEventID] = eventholder
but it doesnt work..any ideas?
text box on a form to that value..I try this code:
eventholder = DoCmd.RunSQL("select max([event id]) from events")
Forms![LogIn]![ActiveEventID] = eventholder
but it doesnt work..any ideas?