split data

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
 
D

Douglas J. Steele

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top