Solved

MS Access Can I capture Cancel click in InputBox?

Posted on 2010-09-23
1
324 Views
Last Modified: 2013-11-27
Is it possible to capture the cancel button being clicked on an InputBox?

I've read in a few places that you just have to check for a blank or zero value, but if that's the case, what purpose does the Cancel button serve?

In my case, zeroes and blank values are allowed and I want the cancel button to let the user quit the function. I know I could build my own form or even have a follow-up when zero or blank is entered to ask whether they want to actually cancel or continue, but I'm hoping I can take care of it all in one step...
0
Comment
Question by:JBHansen
1 Comment
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 50 total points
ID: 33748761
"but if that's the case, what purpose does the Cancel button serve?"
It in fact creates the 'blank or zero value, ' ... aka Empty String   ""

mx
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
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 …
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

813 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

14 Experts available now in Live!

Get 1:1 Help Now