Hi all,
I have an unbound text box, Cutter_No on the form Stackup_Form, which is populated by using a Select_Cutter_Form form. I then use a hidden text box, Cutter_Hidden, which is populated using the dlookup statement to convert this number into the associated primary key of Cutter_Config_Table, which is Cutter_ID for that cutter number. This Cutter_Hidden is what controls the Cutter_ID attribute of Main_Stackup_Form's controlling table, Stackup_Table. I can post code if this is too confusing.
This all works very well, except when the user wants to scroll to that record on the Main_Stackup_Form, the Cutter Number field they see is blank, since it is unbound. Is there a way that I can control that textbox with an SQL statement like:
SELECT [cutter config table].[cutter no] FROM [cutter config table] WHERE ((([cutter config table].[cutter id]) = [forms]![stackup form]![cutterhidden]));
Remembering that cutterhidden is on the form hiding the record's Cutter_ID, which is obvioulsy useless to the end user. I want to use this ID essentially the same way that I created it to populate the Cutter Number textbox (this is the meaningful value to the user)when a user navigates to a particular record.
I have an unbound text box, Cutter_No on the form Stackup_Form, which is populated by using a Select_Cutter_Form form. I then use a hidden text box, Cutter_Hidden, which is populated using the dlookup statement to convert this number into the associated primary key of Cutter_Config_Table, which is Cutter_ID for that cutter number. This Cutter_Hidden is what controls the Cutter_ID attribute of Main_Stackup_Form's controlling table, Stackup_Table. I can post code if this is too confusing.
This all works very well, except when the user wants to scroll to that record on the Main_Stackup_Form, the Cutter Number field they see is blank, since it is unbound. Is there a way that I can control that textbox with an SQL statement like:
SELECT [cutter config table].[cutter no] FROM [cutter config table] WHERE ((([cutter config table].[cutter id]) = [forms]![stackup form]![cutterhidden]));
Remembering that cutterhidden is on the form hiding the record's Cutter_ID, which is obvioulsy useless to the end user. I want to use this ID essentially the same way that I created it to populate the Cutter Number textbox (this is the meaningful value to the user)when a user navigates to a particular record.