K
keers
Hi All,
I have a form which the user is able to select a customer, once
seletected a second form is presented which will enable the user to
update the customer contact details. The second form is to be
restricted to the required customer by using the filter parameter of
the docmd.openform command;
DoCmd.OpenForm "frmCustomer", acNormal, , """ID = " & Me!
[frmRenewalLettersByDate subform]!CustID & """", acFormEdit, acDialog
However, the filter is being ignored and regardless of which customer
is selected, another customers details always appears (and always the
same one(?)).
i have tried numerous contructs, but none seem to work, including
assinging a variable to create the filter string i.e.
IDFilter = """ID = " & Me![frmRenewalLettersByDate subform]!CustID &
""""
MsgBox "Cust id=" & IDFilter
The output from the msgbox appears (to me) to create the correct
syntax;
"ID = 546765438"
ID is the correct field name as detailed in the table to which the
second form is bound.
I am using Access 2003
Any help would be apprecited - Thanks
Keers
I have a form which the user is able to select a customer, once
seletected a second form is presented which will enable the user to
update the customer contact details. The second form is to be
restricted to the required customer by using the filter parameter of
the docmd.openform command;
DoCmd.OpenForm "frmCustomer", acNormal, , """ID = " & Me!
[frmRenewalLettersByDate subform]!CustID & """", acFormEdit, acDialog
However, the filter is being ignored and regardless of which customer
is selected, another customers details always appears (and always the
same one(?)).
i have tried numerous contructs, but none seem to work, including
assinging a variable to create the filter string i.e.
IDFilter = """ID = " & Me![frmRenewalLettersByDate subform]!CustID &
""""
MsgBox "Cust id=" & IDFilter
The output from the msgbox appears (to me) to create the correct
syntax;
"ID = 546765438"
ID is the correct field name as detailed in the table to which the
second form is bound.
I am using Access 2003
Any help would be apprecited - Thanks
Keers