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 / General 2 / July 2007

Tip: Looking for answers? Try searching our database.

Access 97- if... and if... then Coding

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jeschaefer@usa.net - 12 Jul 2007 14:43 GMT
I usea form with check boxes.  I have code that If one box is checked
Then change a list to "1"

Private Sub XXX_AfterUpdate()
If (Me.XXX = -1)  Then
Me.List117 = "1"
End If

I want to write a code that if two (or more) boxes are checked Then
change list to 2

Private Sub XXX_AfterUpdate()
If (Me.XXX = -1) and
If (If Me.YYY = -1 ) Then
Me.List117 = "2"
End If

I would appreciate any help.
Jeff Boyce - 12 Jul 2007 17:03 GMT
Have you checked Access HELP for the syntax on the If...Then function?

Perhaps:
   If (Me!XXX = -1) And (Me!YYY = -1) Then
       'do this
   Else
       'do that
   End If

Regards

Jeff Boyce
Microsoft Office/Access MVP

>I usea form with check boxes.  I have code that If one box is checked
> Then change a list to "1"
[quoted text clipped - 14 lines]
>
> I would appreciate any help.
 
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.