A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

split data



 
 
Thread Tools Display Modes
  #1  
Old December 19th, 2006, 07:04 PM posted to microsoft.public.access,microsoft.public.access.forms
antonov
external usenet poster
 
Posts: 31
Default 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  
Old December 19th, 2006, 07:27 PM posted to microsoft.public.access,microsoft.public.access.forms
Douglas J. Steele
external usenet poster
 
Posts: 9,313
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:16 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.