Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening a form for a new record and using a value in a combo box 1

Status
Not open for further replies.
Jan 27, 2003
35
0
0
GB
Hi,

I would like to open a form to enter a new record and use information from the original form to populate a field on the second form.

combo box on form 1 = field on form 2(new record)
 
Perhaps DLookup can help you.
Take care, Phil
 
How are ya oneeyedwilly . . . . .

Try this ([blue]you![/blue] substitute proper names in [purple]purple[/purple]):
Code:
[blue]   DoCmd.OpenForm "[purple][b]OpenedFormName[/b][/purple]", , , , acFormAdd [green]'Data Entry Mode[/green]
   Forms![[purple][b]OpenedFormName[/b][/purple]]![[purple][b]TextboxName[/b][/purple]] = Me!ComboboxName.Column(1)[/blue]
You may have to play with the column number to get it right.

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top