report problems

P

pigsy101

i have a check box whose control source is:

=[Total In Stock]-[reorderlevel]<=0


how can i set the control to only be visible if this check box is
true?


tried macro and vba, but can't quite work it out.


thanks in advance


Paul
 
G

Guest

Try the code:

Me.[CheckBoxName].Visible=([Total In Stock]-[reorderlevel]<=0)

The code above should run from few events:
OnCurrent event of the form
AfterUpdate event of both fields: [Total In Stock] ,[reorderlevel]
 
G

Guest

Sorry, I just noticed that you mentioned a report

Use the code in the OnPrint event of the section where the check box is
palced in

--
Good Luck
BS"D


Ofer Cohen said:
Try the code:

Me.[CheckBoxName].Visible=([Total In Stock]-[reorderlevel]<=0)

The code above should run from few events:
OnCurrent event of the form
AfterUpdate event of both fields: [Total In Stock] ,[reorderlevel]



--
Good Luck
BS"D


pigsy101 said:
i have a check box whose control source is:

=[Total In Stock]-[reorderlevel]<=0


how can i set the control to only be visible if this check box is
true?


tried macro and vba, but can't quite work it out.


thanks in advance


Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

calculated fields in a report 4
calculated fields on a report 1
Total in report footer 1
Unbinding all a Reports ControlSources 3
IIF Problem 16
Report Question? 1
GroupFooter 2
Percentages in Reports 3

Top