OK, a very trivial problem here i am sure.... how do i use the results of an ´query within VB. Normally i would just hardcode a procedure to swcan through a table in VB, but i want to use an SQL query this time. I have tested it works, and the result is an integer... how do i then assign this to a variable???
My query is:
SELECT Max([Component_Line].[Component_Line])FROM Component_Line WHERE ((Component_Line.Config_Id)=1);
so i will run this using the run sql command but if someone could tell me how to then use thew result i would be very grateful... i have a feeling it has something to do settiong a variable to recordset!!!
Thanks,
Daem
My query is:
SELECT Max([Component_Line].[Component_Line])FROM Component_Line WHERE ((Component_Line.Config_Id)=1);
so i will run this using the run sql command but if someone could tell me how to then use thew result i would be very grateful... i have a feeling it has something to do settiong a variable to recordset!!!
Thanks,
Daem