silentwolf
Active member
- Local time
- Today, 11:41
- Joined
- Jun 12, 2009
- Messages
- 644
Stuck again,
sorry for posting that many questions but need to get some things done and getting stuck.
What I am trying to do is open a form from a subform selection in another form.
Problem is that the form I like to open has two subforms and a textbox in the header.
Attached the pic of the second form I like to open.
Code in the first form
The second forms name is frmCustomerTab
the code above is what I am trying but not sure what control I need to refer to to make it work.
Could someone tell me please?
Many thanks
sorry for posting that many questions but need to get some things done and getting stuck.
What I am trying to do is open a form from a subform selection in another form.
Problem is that the form I like to open has two subforms and a textbox in the header.
Attached the pic of the second form I like to open.
Code in the first form
Code:
DoCmd.OpenForm "frmCustomerTab", datamode:=acFormEdit, _
WindowMode:=acWindowNormal, WhereCondition:=CustomerID = " & Me!sfmAllCustomers!CustomerID"
The second forms name is frmCustomerTab
the code above is what I am trying but not sure what control I need to refer to to make it work.
Could someone tell me please?
Many thanks