-
Report criteria from form
I have a form I am using to either select an Equipment ID or pull all records if no id is selected. My code in the query looks like the following:
([Forms]![frmWOCommentRpt]![cboEquipID]) Or Like "**"
When I run this, however, it only does the Or part. If I select an equipment ID on the form, it doesn't just pull that. I'm sure this is a simple fix, but I can't see it. Any ideas?
-
Like ([Forms]![frmWOCommentRpt]![cboEquipID]) + "*"
This will put the Equipment ID in if it is there, and append the asterix (*) at the end which should not hurt anything, or put in just the Astrix if no Equipment ID is given. The plus sign (+) is used so that if Equipment ID is null, the Astrix is put in anyway. Using the ampersand (&) causes the Null to make the whole concatenation become null.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|