V
VJ
Hi,
I have a database of vendors I am putitng together, I am doing a search on
it and I want to select a certain query based on a category in the form. I
am pulling too many fields to just use one query so I want to split it up to
run the hotel query if that category is selected or restaurants. How do I do
this in VBA?
This is how I started out
If [Forms]![Search2].[Category 1]= “1 or 2†then stDocName= “Hotel Queryâ€
I have about 14 categories but outside of Hotel and Restaurant i can call
them to one query. Please help. Thanks in advance.
I have a database of vendors I am putitng together, I am doing a search on
it and I want to select a certain query based on a category in the form. I
am pulling too many fields to just use one query so I want to split it up to
run the hotel query if that category is selected or restaurants. How do I do
this in VBA?
This is how I started out
If [Forms]![Search2].[Category 1]= “1 or 2†then stDocName= “Hotel Queryâ€
I have about 14 categories but outside of Hotel and Restaurant i can call
them to one query. Please help. Thanks in advance.