If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
split data
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 |
#2
|
|||
|
|||
split data
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. -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no private e-mails, please) "antonov" wrote in message ... 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 |
Thread Tools | |
Display Modes | |
|
|