• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 258
  • Last Modified:

How to search an Access Form using one data field as the search field.

Is there a way to search all text fields at once on an Access Form using one field to enter the search data, and then displaying the results in a separate form?
1 Solution
If the date is only in one field why search entire form

Why not just search date field and open form to matches.

DoCmd.OpenForm "form2", , , "[datefield]=" & "'" & Me![datefield] & "'"
Rey Obrero (Capricorn1)Commented:
yes, you open the other form with a where condition

if field is text
docmd.openform "otherForm",,,"[fieldName]='" & me.fieldname &"'"  

if field is number
docmd.openform "otherForm",,,"[fieldName]=" & me.fieldname

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now