Neebie Here

  • Thread starter Thread starter Allen Browne
  • Start date Start date
Just got this out of the box, so please excuse my ignorance for now.
How do you get a form to unload , I have tried what I knew in VBA as to
unload, but it say that this is not supported. What I am trying to do is
when a textbox gets to a certain value is to get rid of the form, I can make
it invisible, but I can not unload it. Is this not the thing to do in
Access.

Don't unload it - Close it.

DoCmd.Close acForm, "MyFormName"
 
Just got this out of the box, so please excuse my ignorance for now.
How do you get a form to unload , I have tried what I knew in VBA as to
unload, but it say that this is not supported. What I am trying to do is
when a textbox gets to a certain value is to get rid of the form, I can make
it invisible, but I can not unload it. Is this not the thing to do in
Access.

this works
private sub pump_change
if pump.value = 5 then
form.visible = false
end if
end sub

this don't, and it does what I like
private sub pump_change
if pump.value = 5 then
unload form
end if
end sub
 
Back
Top