J
John F.
I need the subsequent form to open taking into account the value of 2 fields
on the 'calling form' that the button the code is attached to is on. I've
written a 'WHERE' statement that looks like:
-"[Firstfield] ="& [Firstfield] $" AND [Secondfield] =" $[Secondfield]
(the Wizard gave me the first part but I had to suply he 'Secondfiled' part
myself. Both fields are represented by textboxes with values displayed on the
calling form)
When I run the macro, it treats the [Secondfield] as a parameter.
Can I Ues the 'AND' statement? How do I do it effectively? Do the referred
fields on the calling form have to be in the primary key of the underying
table? THis is a problem since it's a querty with not primay key that is the
underlying structure.
Thank you.
John Fowler.
on the 'calling form' that the button the code is attached to is on. I've
written a 'WHERE' statement that looks like:
-"[Firstfield] ="& [Firstfield] $" AND [Secondfield] =" $[Secondfield]
(the Wizard gave me the first part but I had to suply he 'Secondfiled' part
myself. Both fields are represented by textboxes with values displayed on the
calling form)
When I run the macro, it treats the [Secondfield] as a parameter.
Can I Ues the 'AND' statement? How do I do it effectively? Do the referred
fields on the calling form have to be in the primary key of the underying
table? THis is a problem since it's a querty with not primay key that is the
underlying structure.
Thank you.
John Fowler.