split data

  • Thread starter Thread starter antonov
  • Start date Start date
A

antonov

Hello everybody. We have a problem:
In the first form we input the data in a combobox. The format (text) is
AAA-AAAAAAAA. If not in list then

Private Sub IdMAWB_NotInList(NewData As String, Response As Integer)
Response = acDataErrContinue

icomefrom = "transport"
DoCmd.OpenForm "MAWB_ADD", acNormal, , , acFormAdd, acDialog, "GotoNew"
Me![IdMAWB] = whatmawb2


Exit Sub
End Sub

Now the question: is it possible if not in list to get what we do input in
the above mentioned combobox to go to 2 different texboxes in MAWB_ADD?

Thanks for any reply
 
Concatenate the values, pass that concatenated string as the OpenArgs
argument in the OpenForm command, then have the Form_Load event of form
MAWB_ADD figure out what's what, and update the appropriate text boxes.
 
Back
Top