G
Guest
hi,
I had the same problem a while back.
I solved it you creating a report form. It has 5 check
boxes on it labled by item id, by vendor, by date, by
month, all.
I added code so that only 1 check box could be checked at
a time.
sub chkbox1()
If chkbox1 = true then
chkbox2 = false
chkbox3 = false
chkbox4 = false
chkbox5 = false
end if
each check box has it own sub which turn off all the other
check boxes if it is checked.
I had to write 5 different queries, 1 for each criteria.
but only 1 report. I programicly set the record source to
which query based on which check box was checked.
me.recordsource = "query1"
on the form are text boxes for all of the criteria.
depending on which check box is check, i enabled (lit up)
any text box that pertained to the qery selected and
disabled (grayed out) any text box that didn't pertain to
the query.
Textbox1.enabled = true (or false)
anyway this was my solution
hope it helps.
I'm off work in 2 minutes. i'll check this post tommorrow
if you have any questions.
good luck.
I had the same problem a while back.
I solved it you creating a report form. It has 5 check
boxes on it labled by item id, by vendor, by date, by
month, all.
I added code so that only 1 check box could be checked at
a time.
sub chkbox1()
If chkbox1 = true then
chkbox2 = false
chkbox3 = false
chkbox4 = false
chkbox5 = false
end if
each check box has it own sub which turn off all the other
check boxes if it is checked.
I had to write 5 different queries, 1 for each criteria.
but only 1 report. I programicly set the record source to
which query based on which check box was checked.
me.recordsource = "query1"
on the form are text boxes for all of the criteria.
depending on which check box is check, i enabled (lit up)
any text box that pertained to the qery selected and
disabled (grayed out) any text box that didn't pertain to
the query.
Textbox1.enabled = true (or false)
anyway this was my solution
hope it helps.
I'm off work in 2 minutes. i'll check this post tommorrow
if you have any questions.
good luck.