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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NavigationButtons.Visible = False/true problem

Status
Not open for further replies.

Chyld

Programmer
Jul 25, 2001
48
GB
I have an unbound text box in the form header that with an afterupdate event, requeries the form details.

Within the body of the form, I have a calculated control that counts the number of records that are found with similar criteria to the form header control.

How do I make visible the navigation buttons if the record count is greater than 1.

I have tried to code it to the afterupdate event of the unbound text box in the form header with the following:

if me.count.value = >1 then
me.navigationbuttons.visible = true
else
me.navigationbuttons.visible = false
end if
end sub

but it doesn't work.

How would I do it?

 
From what I saw in the help, I don't think you use the visible property with it. Try this:

if me.count.value > 1 then
me.navigationbuttons = true
else
me.navigationbuttons = false
end if

Hope that helps... Terry M. Hoey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top