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 / Database Design / August 2004

Tip: Looking for answers? Try searching our database.

Table Value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PCC - 25 Aug 2004 05:14 GMT
I am trying to write an if statement to open a form based
on a value in a table.  In other words if rates = 0 then
open form1 else open form2.  Is there a way to write that
in access.

Thanks
Allen Browne - 25 Aug 2004 09:08 GMT
Private Sub cmdView_Click()
   Dim strDoc As String

   If Rates = 0 Then
       strDoc = "Form1"
   Else
       strDoc = "Form2"
   End If

   DoCmd.OpenForm strDoc
End Sub

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

>I am trying to write an if statement to open a form based
> on a value in a table.  In other words if rates = 0 then
> open form1 else open form2.  Is there a way to write that
> in access.
>
> Thanks
 
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.