Check box adds text from a table to a report

  • Thread starter Thread starter Terry Best via AccessMonster.com
  • Start date Start date
T

Terry Best via AccessMonster.com

My contracts are the same for all customers, however I may
include or exclude some items in the contract based on the scope of work.

The problem I have is creating the report from my form with checkboxes on it.
Based on the checkboxes, I want to add specific blocks of text from a table
into a report.
I can't figure out how to get the "IF this checkbox is true THEN add Contents
of
[text], to the Report, Else don't add it to the report.

The form just provides "ticklers" so that I don't forget to add something in
my contract.

Checkboxes like this:

[]CONCRETE SCOPE INCLUSIONS:
[]a. Pouring of Vertical Concrete
[]b. Grinding of ceiling soffits.

[]CONCRETE SCOPE EXCLUSIONS:
[]a. Pouring of Foundations or Grade Beams
[]b. Point, Patch or Rubbing of Concrete

[]FORMWORK
[]a. etc...
[]b. etc...

[]REBAR
[]a. etc...
[]b. etc...


Each heading is on a diffetent tab of the form, but all checkbox items are
from the same table [contracts].
I only show an "a" & "b" under the heading, but there could be up to ten or
fifteen sub items for each heading.

Can someone show me how to do this? Or even provide an existing example
database that may be similar in function. I could hack out what I need. I
have created some databases in the past that have cut and pasted VBA in
them and I am getting better at writing my own, however I am Just learning
this VBA wizardry so please, be easy on me.
You could get over my head pretty quick.

Thanks In Advance
Terry Best
 
You might want to use Mail Merge in MS Word for the contract instead of
Access report.

Clause table --
ClauseNum - number
Clause - text or memo

Build your query to pull all the boiler plate information - Name, address,
dates, etc.
Then include the ClauseNum and Clause fields.
Make criteria as follows --
Iif([Forms]![YourForm]![InclusionA] = -1,1,0) This will pull
Clause 1.
-- next row --
Iif([Forms]![YourForm]![InclusionB] = -1,2,0) This will pull
Clause 2.
-- next row --
Iif([Forms]![YourForm]![ExclusionA] = -1,3,0) This will pull
Clause 3.
-- next row --
Iif([Forms]![YourForm]![ExclusionB] = -1,4,0) This will pull
Clause 4.
-- next row --
Continue for all your clauses.
 
Back
Top