Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

On Current on form

Status
Not open for further replies.

jamesjames1

Technical User
Jun 18, 2004
81
0
0
GB
Hi,

I have a small database which is for server audits. Its pretty much complete except when I create a new record I get a run time error which de-bugs to the code in the On Current event on the main form.

All thats in there is some code which states that when the tickbox is in yes state the text box is visible.. e.g
Me.boxpath.Visible = Me.tickbox.

The error I get is Invalid use of null which points to the first entry on the forms even on current.

Any ideas? would be greatfully received...
 
Perhaps:

Me.boxpath.Visible = Nz(Me.tickbox,False)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top