I have a problem with program that tracks inspections.
I want to open a form in edit mode and have it automatically go to a specific inspection number (insp_num, which is a unique text field in the table). I want the form to populate with the data from the record that coresponds to the insp_num. The insp_num that I want to go to is not the first record in the table. Instead it is about the 2000th record.
I have been trying to use the "setfocus" function in the "on current" event of the form but I'm not getting it done.
My code in the "on current" looks something like this;
[insp_num] = "12345GG"
me.insp_num.setfocus
This only changes the insp_num field on the form to "12345GG", the rest of the form is not populated with the data from the record.
Thanks for your help
I want to open a form in edit mode and have it automatically go to a specific inspection number (insp_num, which is a unique text field in the table). I want the form to populate with the data from the record that coresponds to the insp_num. The insp_num that I want to go to is not the first record in the table. Instead it is about the 2000th record.
I have been trying to use the "setfocus" function in the "on current" event of the form but I'm not getting it done.
My code in the "on current" looks something like this;
[insp_num] = "12345GG"
me.insp_num.setfocus
This only changes the insp_num field on the form to "12345GG", the rest of the form is not populated with the data from the record.
Thanks for your help