Hi,
I have a form which opens with specific criteria. The code I have for doing this is as follows:
This works fine but I want the stLinkCriteria to include the value of another filed called [Pole No]. You see both Segment and Pole No make up the primary key for this table and I need to specify both in stLinkCriteria before opening the form to ensure the right record is opened.
Try as I might I cannot get this to work. Can someone please tell me the correct syntax?
Thanks,
Liam
I have a form which opens with specific criteria. The code I have for doing this is as follows:
Code:
stDocName = "Network Refurbishment 20kV-QuickUpdate"
stLinkCriteria = "[Segment]=" & " ' " & Me![Segment] & " ' "
DoCmd.OpenForm stDocName, , , stLinkCriteria
Try as I might I cannot get this to work. Can someone please tell me the correct syntax?
Thanks,
Liam