R
Rob Parsons
Hi,
I'm really struggling with the process of setting my query criteria via a
form. I'm essentially trying to combine 3 query parameter dialogs into 1
form. I've tried everything, macros - hit search button, openQuery etc.
code - Me.Visible = False
DoCmd.OpenQuery "qryByExperience",
acViewNormal, acEdit
DoCmd.Close acForm, "frmSearch"
These are on the onClick event of my search form.
Within the query i'm using the following format within the criteria rows,
Forms![FormName]![ControlName]
I'm able to open the query, but get no results. I know the matching records
are there, and if I run the query and handle each query parameter 1 by 1 I
get the desired results.
I'm missing something but don't know what. The form uses combo boxes that
utilise the lookup wizard lookup. I've run through Microsoft's examples with
theirnorthwind db but am even struggling with that. Are there any settings I
could have wrong?
Hope someone can help, fingers tightly crossed,
Rob
I'm really struggling with the process of setting my query criteria via a
form. I'm essentially trying to combine 3 query parameter dialogs into 1
form. I've tried everything, macros - hit search button, openQuery etc.
code - Me.Visible = False
DoCmd.OpenQuery "qryByExperience",
acViewNormal, acEdit
DoCmd.Close acForm, "frmSearch"
These are on the onClick event of my search form.
Within the query i'm using the following format within the criteria rows,
Forms![FormName]![ControlName]
I'm able to open the query, but get no results. I know the matching records
are there, and if I run the query and handle each query parameter 1 by 1 I
get the desired results.
I'm missing something but don't know what. The form uses combo boxes that
utilise the lookup wizard lookup. I've run through Microsoft's examples with
theirnorthwind db but am even struggling with that. Are there any settings I
could have wrong?
Hope someone can help, fingers tightly crossed,
Rob