Fileandreos
New member
- Local time
- Today, 05:48
- Joined
- Feb 21, 2009
- Messages
- 2
Hi all,
I want to add a button to jump to a specific record in my form (frm_Sites). The button reads a parameter from a tekst field to know which record to go to. So far so good if I use the following code (DoCmd.GoToRecord acDataForm, "frm_Sites", acGoTo, txt_Find_Site_Id.Text).
The code above, navigates to the record based on the parameter from the inputbox 'txt_Find_Site_Id.Text'.
What I realy want is to navigate to a specific record, based on a field in the form, not the record count of MS Access. I want to navigate based on a 'Site_Id' value which is one of the fields in the form itself ...
In a SQL query it should look like (select * from tbl_Sites where Site_Id = txt_Find_Site_Id.Text).
I hope I have described my question clear enough for you guys to understand )
Thanks in advance and hope to have a possible solution soon!
Best Regards,
Fileandreos
I want to add a button to jump to a specific record in my form (frm_Sites). The button reads a parameter from a tekst field to know which record to go to. So far so good if I use the following code (DoCmd.GoToRecord acDataForm, "frm_Sites", acGoTo, txt_Find_Site_Id.Text).
The code above, navigates to the record based on the parameter from the inputbox 'txt_Find_Site_Id.Text'.
What I realy want is to navigate to a specific record, based on a field in the form, not the record count of MS Access. I want to navigate based on a 'Site_Id' value which is one of the fields in the form itself ...
In a SQL query it should look like (select * from tbl_Sites where Site_Id = txt_Find_Site_Id.Text).
I hope I have described my question clear enough for you guys to understand )
Thanks in advance and hope to have a possible solution soon!
Best Regards,
Fileandreos
Last edited: