FindFirst

fernin8r

Registered User.
Local time
Today, 05:54
Joined
May 28, 2002
Messages
142
Here's the deal. I have a field "Project_Number" that used to be a number field. I found out that it needs to be text. this caused some problems in my code. Here is my original code:

rstItems.FindFirst "Project_Number = " & [Forms]![Homepage]![Project_Number]

Does anyone know what needs to be changed so that it works with text fields?
 
One needs to include ' to enclose text values ( a single ' not a quotation ")

rstItems.FindFirst "Project_Number = '" & [Forms]![Homepage]![Project_Number] & "'"
 

Users who are viewing this thread

Back
Top Bottom