Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / April 2004

Tip: Looking for answers? Try searching our database.

Help with hiding/showing forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Katie - 29 Apr 2004 21:59 GMT
I have some code attached to a button on a form that runs
a query, hides the form and then tries to show another
form. It hides the first form, displays the result of the
query but doesn't show the second form. What am I doing
wrong?

Also how do I stop the query result displaying?  

DoCmd.OpenQuery "QueryAv"

'  'Hide availability form
  Forms![SINGLE BOOKING AVAILABILITY].Visible = False
'  'Open the detail form
  DoCmd.OpenForm "SINGLE BOOKING DETAIL"
'  '
  Forms![SINGLE BOOKING DETAIL].Visible = True
Bill Taylor - 29 Apr 2004 22:30 GMT
Questions:
What does the query run for? is it an update or append query. By running a
query from code it will display the query results. You would need to close
the query before doing anything else, as an open query will stop all
subsequent code.
> I have some code attached to a button on a form that runs
> a query, hides the form and then tries to show another
[quoted text clipped - 12 lines]
> '  '
>    Forms![SINGLE BOOKING DETAIL].Visible = True
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.