Solved

Multiple statements on one line in Access VBA

Posted on 2012-03-16
3
557 Views
Last Modified: 2012-03-16
Hi

I would like to convert the following statements to one line (as in Visual Basic.net).  Can this be done in Microsoft Access VBA?


If IsNull(Me.[Quantity]) Then
    Me.[Quantity].SetFocus
    Exit Sub
End If
0
Comment
Question by:peispud
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 500 total points
ID: 37731973
If IsNull(Me.[Quantity]) Then Me.[Quantity].SetFocus :  Exit Sub

mx
0
 
LVL 75
ID: 37731974
Note the Colon ...
0
 

Author Closing Comment

by:peispud
ID: 37731982
Thanks
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now