Easy Question

Joshann

Registered User.
Local time
Today, 04:14
Joined
Mar 22, 2002
Messages
142
This should be an easy question. I don't know why I can't figure it out. I can't figure out how to use a number in a string expression. Here's what I have which is giving me an error message:

Dim n as Integer
n = 100

Me.Recordset.FindNext "[NUMBERFIELD] = n"

(n actually gets a number from somewhere else, but it's easier to use 100 in this example).

Can anyone help me with the expression?
 
Try this:

Me.Recordset.FindNext "[NUMBERFIELD] = " & n
 
That did it! Thank you so much!
 

Users who are viewing this thread

Back
Top Bottom