Solved

Can I tab to another field based on a check box?

Posted on 2013-01-17
6
275 Views
Last Modified: 2013-01-17
This is probably a simple question.

When I click on a value on a form where there are multiple check boxes, if I check a box (SME), I want the code to take me to another field that is a text box (other) for additional information to capture...

If it is not checked do nothing.

Clearly my code is not working.....

 Private Sub SME_Click()

If Me.SME = False Then Exit Sub
If Me.SME = True Then GoTo me.txtSME

End If
End Sub
0
Comment
Question by:gracie1972
  • 3
  • 3
6 Comments
 
LVL 61

Assisted Solution

by:mbizup
mbizup earned 250 total points
ID: 38789884
Use

Me.txtsme.setfocus
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 38789885
Private Sub SME_Click()

If Me.SME = False Then Exit Sub
If Me.SME = True Then   me.txtSME.setfocus

End If
End Sub
0
 
LVL 61

Expert Comment

by:mbizup
ID: 38789894
Also,  with the if..thens on single lines, you should remove the End If.
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 250 total points
ID: 38789933
Private Sub SME_Click()

If Me.SME = False Then Exit Sub
If Me.SME = True Then  
me.txtSME.setfocus

End If
End Sub
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 38790134
thank you mbizup
it was just a mistake of not hitting the enter key
0
 
LVL 61

Expert Comment

by:mbizup
ID: 38790209
Np, Cap - thanks
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question