K
Kevin Kraemer
Welcome Weekend Warriors!
I am pretty good with Access, not so such with VB code.
I have a Marketing / Sales Lead table which includes fields like
LeadDate (Date the lead comes in)
MarketingCampaignID (foreign key from the Marketing Campaign table)
CompanyID (foreign key from the Company table)
AgentID (foreign key from the Agent table)
Finally a PRINT checkbox.
I have a form which brings in all records and fields from the Sales Lead
table. From there I want to be able to filter the records on the form based
on a date range as well as selections in the combo boxes (all located in the
header) of a continuous form.
The date fields are text boxes (StartDate and EndDate) - records whose
LeadDate is between those 2 date text boxes I would like to filter and show
only those filtered records on the form.
Then I have 3 unbound combo boxes with the row source being the main table
of the combo box. For the Agent Combo Box (AgentCB), the row source is the
Agent table, with the bound field being 1 (which is the primary key called
AgentID). Once an agent is selected (let's say Agent 1), I would like to
filter the current records in the form based on the agent ID (while
continuing to filter on the date text boxes).
The other 3 combo boxes - one for the company and one for the marketing
campaigns are set up the same way.
After a person selects an agent, they may also want to select a marketing
campaign (let's say Magazine Ad) - I would like the form to display records
for the date range for Agent 1 for the Magazine ad.
Hopefully that is descriptive enough to understand.
Finally I have them click on a PRINT checkbox, since they may only want to
include some of the records. What I also have is a Print All button so all
the check boxes get checked. I had run an update query to do this in the
past, but I don't know how to do that with the multiple filters.
Thanks ahead of time for your help
I am pretty good with Access, not so such with VB code.
I have a Marketing / Sales Lead table which includes fields like
LeadDate (Date the lead comes in)
MarketingCampaignID (foreign key from the Marketing Campaign table)
CompanyID (foreign key from the Company table)
AgentID (foreign key from the Agent table)
Finally a PRINT checkbox.
I have a form which brings in all records and fields from the Sales Lead
table. From there I want to be able to filter the records on the form based
on a date range as well as selections in the combo boxes (all located in the
header) of a continuous form.
The date fields are text boxes (StartDate and EndDate) - records whose
LeadDate is between those 2 date text boxes I would like to filter and show
only those filtered records on the form.
Then I have 3 unbound combo boxes with the row source being the main table
of the combo box. For the Agent Combo Box (AgentCB), the row source is the
Agent table, with the bound field being 1 (which is the primary key called
AgentID). Once an agent is selected (let's say Agent 1), I would like to
filter the current records in the form based on the agent ID (while
continuing to filter on the date text boxes).
The other 3 combo boxes - one for the company and one for the marketing
campaigns are set up the same way.
After a person selects an agent, they may also want to select a marketing
campaign (let's say Magazine Ad) - I would like the form to display records
for the date range for Agent 1 for the Magazine ad.
Hopefully that is descriptive enough to understand.
Finally I have them click on a PRINT checkbox, since they may only want to
include some of the records. What I also have is a Print All button so all
the check boxes get checked. I had run an update query to do this in the
past, but I don't know how to do that with the multiple filters.
Thanks ahead of time for your help