Greyed out a field

  • Thread starter Thread starter Vina
  • Start date Start date
V

Vina

I have a form that runs a report and it has fields for
criteria, can someone give me an idea how i can hve a
field lock or greyed out if the report doestn require
that criteria?

Thanks
Vina
 
Hi, Vina. Try

DoCmd.OpenReport "yourcriteriaformname"
Forms!yourcriteriaformname!txtUnneededfld.Enabled = False

HTH
Kevin Sprinkel
 
You can set this through VBA:

'To grey
Me!ControlName.Enabled = False

'To clear & enable
Me!ControlName.Enabled = True
 
Thank you this works!!!
-----Original Message-----
Hi, Vina. Try

DoCmd.OpenReport "yourcriteriaformname"
Forms!yourcriteriaformname!txtUnneededfld.Enabled = False

HTH
Kevin Sprinkel

.
 
Back
Top