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 / Forms Programming / April 2005

Tip: Looking for answers? Try searching our database.

Help with right VBA code syntax

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mrleojeli - 29 Apr 2005 11:00 GMT
Hi,

I'm very new to VBA and am struggling with a bit of code than I wonder if
someone nice could help out with!

Basically I want to write code that says if one of the entries (lets call it
Entry10)in the combo box on FormA is selected then FormB will open.

I presume I can use the code builder for the AfterUpdate event property for
the combo box on formA, but here's where I start to go off the rails. How do
I write the OpenForm command so it will only operate if "Entry10" is selected
in the combo box

Thanks for any assistance
Joe
Dennis - 29 Apr 2005 11:26 GMT
In the after update event of the conbo box use the following but this looks
too simple. Is entry 10 a fixed item that you know or are you saying it could
be variable
and you need to check if it is the 10th item in the list ?

if combobox = "Entry10" then
   DoCmd.OpenForm "FormB"
end if

> Hi,
>
[quoted text clipped - 11 lines]
> Thanks for any assistance
> Joe
 
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.