Listbox, Where statement (1 Viewer)

musclecarlover07

Registered User.
Local time
Yesterday, 22:47
Joined
May 4, 2012
Messages
236
So i have a form with 3 fields. (This is just a test form/table):
ID: autonumber
Fullname: text field
Last4: number field

I have the following code:
Code:
DoCmd.OpenForm "test", , , "Id = '" & Me.List14 & "'"
It keeps giving a mismatch error. How do i get it so I can use the autonumber to filter the form?

Code:
DoCmd.OpenForm "test", , , "Fullname = '" & Me.List14 & "'"
When I do this it works just fine.
 

musclecarlover07

Registered User.
Local time
Yesterday, 22:47
Joined
May 4, 2012
Messages
236
pBaldy thanks. That helped so much. So now if/when i need to do that with a date I got that. It isnt a multi-select box. I havent really found a use for those within my databases yet.
 

pbaldy

Wino Moderator
Staff member
Local time
Yesterday, 21:47
Joined
Aug 30, 2003
Messages
36,124
Happy to help.
 

Users who are viewing this thread

Top Bottom