I have a list box on a form that filters records in the form successfully in Access 2003 and 2007. The afterupdate event reads:
Me.RecordSource = “Select * from [tbl_Instructions] WHERE https://www.askwoody.com/forums/topic/variable-populates-in-access-2003-not-in-2007/ = ” & Chr(34) & Me.UniqueTopics.Column(0) & Chr(34)
sTopic = Me.UniqueTopics.Column(0)
A report using sTopic to filter records works well, and “msgbox sTopic” successfully produces expected results in 2003. No problem.
However, using the same appoach in Access 2007 the sTopic variable does not populate using the code above. ???
For what it’s worth, both database call a function to establish sTopic as a public string variable upon opening. And the Access 2007 database retains the value until I run the code above. Please help.