J
John Lane
I have an Access 2007 form, with the following code in it:
Dim SQL As String
SQL = " SELECT ac_ClientAddresses.* FROM ac_ClientAddresses "
SQL = SQL & "WHERE (((ac_ClientAddresses.[Client Name]) Like '"
SQL = SQL & Me![Name] & "')); "
Forms![frmClientAddresses].Form![subfrmClientAddresses].RecordSource = SQL
Forms![frmClientAddresses].Form![subfrmClientAddresses].Requery
When the RecordSource line executes, I get a message saying the "object
doesn't support this property or method". What am I doing wrong? Thanks.
Dim SQL As String
SQL = " SELECT ac_ClientAddresses.* FROM ac_ClientAddresses "
SQL = SQL & "WHERE (((ac_ClientAddresses.[Client Name]) Like '"
SQL = SQL & Me![Name] & "')); "
Forms![frmClientAddresses].Form![subfrmClientAddresses].RecordSource = SQL
Forms![frmClientAddresses].Form![subfrmClientAddresses].Requery
When the RecordSource line executes, I get a message saying the "object
doesn't support this property or method". What am I doing wrong? Thanks.