Avatar of SteveL13
SteveL13Flag for United States of America

asked on 

Trying to use query designer to set criteria

I have the following in query designer but regardless of whether I select a record or not, I get all the data.

Like "*" & [Forms]![frmEnterDateRangeForClientSchedule] & "*"

What am I doing wrong?
Microsoft Access

Avatar of undefined
Last Comment
_agx_
Avatar of _agx_
_agx_
Flag of United States of America image

1. What is the value entered in [frmEnterDateRangeForClientSchedule]?
2. What is the data type of the column it's being compared to with LIKE?
Avatar of SteveL13
SteveL13
Flag of United States of America image

ASKER

1)
SELECT tblClientInformation.ClientRecordID, [ClientLastName] & ", " & [ClientFirstName] AS Name
FROM tblClientInformation
ORDER BY [ClientLastName] & ", " & [ClientFirstName];


Open in new window

2)  Number.
Avatar of SteveL13
SteveL13
Flag of United States of America image

ASKER

Got it with:

Like "*" & [Forms]![frmEnterDateRangeForClientSchedule]![cboClientID] & "*"
ASKER CERTIFIED SOLUTION
Avatar of SteveL13
SteveL13
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of _agx_
_agx_
Flag of United States of America image

Glad you solved it

Microsoft Access
Microsoft Access

Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.

226K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo