Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access Macros > Launch a form u...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 5650 of 5947
Post > Topic >>

Launch a form under the condition that field is not null

by KesAFloyd <Jefferds.A@[EMAIL PROTECTED] > Jul 21, 2008 at 07:31 AM

I would like to prevent accidental overwriting of data in my database.
I don't want to absolutely restrict overwriting, because in some cases
it may be necessary, but I'd like to prevent accidental errors.

My strategy is to have a popup that warns the user that they are about
to change a field that already has contents. They then choose whether
they want to overwrite or not. Basically, there are three macros,
where the first launches a form that has button options to run the
second and third. It is set to appear BeforeUpdate.

1. Open Alert:

OpenForm

2. Don't Overwrite:

Close
RunCommand (Undo)

3. Overwrite:

Close

The problem is, I don't know how to get this popup to only appear when
the field already has contents. I imagine this has something to do
with checking whether it's Null or not, but I don't know the syntax. I
would like this code to be universal, not specific to a single field
but rather across all the fields in the data entry form.

I have a hunch this requires VBA, but I'm not sure.

Thanks,
Alexandra
 




 3 Posts in Topic:
Launch a form under the condition that field is not null
KesAFloyd <Jefferds.A@  2008-07-21 07:31:23 
Re: Launch a form under the condition that field is not null
Steve Schapel <schapel  2008-07-22 13:31:15 
Re: Launch a form under the condition that field is not null
KesAFloyd <Jefferds.A@  2008-07-22 07:11:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 11:34:12 CST 2008.