K
Kevin
I'm working on a database that started out as a small project and has
turned into something massive.
I have a form that has several queries hard coded to buttons on the
form which I run with macros. The database has gotten very complex and
running queries with all these buttons just isn't going to cut it
anymore.
I would like to be able to have the user enter data on my existing form
and run a query based on what was entered. At the present time when I
run my query no values are returned, my query does not find any
records. Here is a synopsis of what I'm doing.
Table "t_purchase" contains fields "Type", "Date",
"Quantity" and "Height".
My form "f_test" has all these fields listed where the record
source points back to the table "t_purchase" and I have the
respected field names defined in the control source on the form by
name.
My query "q_test_query_form_only" has the following in the Criteria
field, "=[forms]![f_test]![Type]". Field is "Type" and Table is
"t_purchase".
What am I doing wrong?
I have also tried the include "contains" in my Criteria field with
the same results. If someone can point me in the right direction I
would appreciate it.
turned into something massive.
I have a form that has several queries hard coded to buttons on the
form which I run with macros. The database has gotten very complex and
running queries with all these buttons just isn't going to cut it
anymore.
I would like to be able to have the user enter data on my existing form
and run a query based on what was entered. At the present time when I
run my query no values are returned, my query does not find any
records. Here is a synopsis of what I'm doing.
Table "t_purchase" contains fields "Type", "Date",
"Quantity" and "Height".
My form "f_test" has all these fields listed where the record
source points back to the table "t_purchase" and I have the
respected field names defined in the control source on the form by
name.
My query "q_test_query_form_only" has the following in the Criteria
field, "=[forms]![f_test]![Type]". Field is "Type" and Table is
"t_purchase".
What am I doing wrong?
I have also tried the include "contains" in my Criteria field with
the same results. If someone can point me in the right direction I
would appreciate it.