G
GSteven
I'm missing something. Fairly new to Access and trying to build a selection
application. I'm presenting a list of customers in a continuous form
"ChooseCust". This list includes some information that would allow a user to
place a check in a checkbox if they want that customer on a report
"CustReport". I also wanted the user to select which salesperson was to
follow up with the chosen customers.
The first part I have working OK. The checkbox is tied back to a yes/no
field in the underlying table and when the "preview report" button is
clicked the report is called up with just the checked customers. The problem
I'm having is how to get the desired salesperson's name on the report. I'm
presenting the list of sales people in a combo box with row source tied to a
query "AllSalesPeople". I have a procedure for "after update" which then
assigns the value chosen to a public var named strSPerson. This var is
declred public in the declarations section of the form. Question is how do I
get this value passed to the report. I can step through the code (using
debug) and verify that the strSPerson is actually being assigned the correct
chosen value but as soon as I step 'out' of the procedure the var strSPerson
becomes null again. Needless to say I cannot "see" this variable from the
report when it is opened.
Can any of you experts see where I'm going wrong?
tia
Steve
application. I'm presenting a list of customers in a continuous form
"ChooseCust". This list includes some information that would allow a user to
place a check in a checkbox if they want that customer on a report
"CustReport". I also wanted the user to select which salesperson was to
follow up with the chosen customers.
The first part I have working OK. The checkbox is tied back to a yes/no
field in the underlying table and when the "preview report" button is
clicked the report is called up with just the checked customers. The problem
I'm having is how to get the desired salesperson's name on the report. I'm
presenting the list of sales people in a combo box with row source tied to a
query "AllSalesPeople". I have a procedure for "after update" which then
assigns the value chosen to a public var named strSPerson. This var is
declred public in the declarations section of the form. Question is how do I
get this value passed to the report. I can step through the code (using
debug) and verify that the strSPerson is actually being assigned the correct
chosen value but as soon as I step 'out' of the procedure the var strSPerson
becomes null again. Needless to say I cannot "see" this variable from the
report when it is opened.
Can any of you experts see where I'm going wrong?
tia
Steve