I had a problem figuring out hot to trigger a form opening up from a combo box when the value didn't exist in the subject table. I figured out what to do to get the form to pop up. In the notinlist event I only put the 2 statements below and eliminated everything else.
DoCmd.OpenForm "Ship to"
DoCmd.GoToRecord , , acNewRec
It opens the form to a blank record but what I would like to do now is trigger the black record to open up but with the typed value appearing in the first input field that triggered the notinlist event to open the form to open in the 1st place.
example:
I typed in 03G866 in the "Ship to Number1" field of my start form. This is a combo box that compares this number to the "Ship to" table. This number is not in the "Ship to" table so the "Ship to" form opens up for input. I would like for the 03G866 to automatically appear in the 1st field of the "Ship to" form when it opens up for input. I'm sure this is something simple. If anyone knows how to do this I would apprieciate it.
Thanks in advance.
DoCmd.OpenForm "Ship to"
DoCmd.GoToRecord , , acNewRec
It opens the form to a blank record but what I would like to do now is trigger the black record to open up but with the typed value appearing in the first input field that triggered the notinlist event to open the form to open in the 1st place.
example:
I typed in 03G866 in the "Ship to Number1" field of my start form. This is a combo box that compares this number to the "Ship to" table. This number is not in the "Ship to" table so the "Ship to" form opens up for input. I would like for the 03G866 to automatically appear in the 1st field of the "Ship to" form when it opens up for input. I'm sure this is something simple. If anyone knows how to do this I would apprieciate it.
Thanks in advance.