D
Dave
Hi,
I have an unbound form which has a number of text boxes.
The main one is to enter a stock code. Once I enter a
code the after update code populates the remainder of the
text boxes with info associated with the stock code using
the following... pretty standard.
Private Sub txtExtOdrStkQty_AfterUpdate()
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("SELECT * FROM etc. etc.)
With rs
Me.txtStkLocation = !StkLocation
Me.txtStkMainCtgy = !StkMainCtgyDesc
etc. etc.
All works fine. When I don't know the stock code I can
double click the stock code field which opens a dialog to
allow me to use various methods to search for the
appropriate code and populates the main form stock code
field with the selected item as it closes. No problems
there but what I want to do is fire the same code as in
the after update (as if I had entered the stock code
myself) to populate the remainder of the text boxes with
associated info. Can anyone assist with an idea on how to
make this happen?
I have an unbound form which has a number of text boxes.
The main one is to enter a stock code. Once I enter a
code the after update code populates the remainder of the
text boxes with info associated with the stock code using
the following... pretty standard.
Private Sub txtExtOdrStkQty_AfterUpdate()
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("SELECT * FROM etc. etc.)
With rs
Me.txtStkLocation = !StkLocation
Me.txtStkMainCtgy = !StkMainCtgyDesc
etc. etc.
All works fine. When I don't know the stock code I can
double click the stock code field which opens a dialog to
allow me to use various methods to search for the
appropriate code and populates the main form stock code
field with the selected item as it closes. No problems
there but what I want to do is fire the same code as in
the after update (as if I had entered the stock code
myself) to populate the remainder of the text boxes with
associated info. Can anyone assist with an idea on how to
make this happen?