Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old January 20th, 2006, 03:35 AM
jim Bob
Guest
 
Posts: n/a
Default data entry forms writing directly to the tables?

Hi,
I have a form for data entry and noticed that when i enter data and
close the form, there is no warning and it writes directly to the
table(s).

Is this the default action?
Is there a way to fire a warning saying "do you want to save the info or
press cancel to close and not save etc"....

Thanks



*** Sent via Developersdex http://www.developersdex.com ***
  #2  
Old January 20th, 2006, 05:25 AM
Tom van Stiphout
Guest
 
Posts: n/a
Default Re: data entry forms writing directly to the tables?

On Fri, 20 Jan 2006 03:24:14 GMT, jim Bob <fromnz@gmail.com> wrote:

Yes. The same happens when you click a navigation button to go to a
different record. It's the way Access works. It won't take most people
more than a few days to get used to it, so for most applications it
doesn't pay off to fight it.

If yours is in that 0.01% class, you might want to put up a message
like this:
Private Sub Form_BeforeUpdate(Cancel As Integer)
If MsgBox("Wanna Save?", vbQuestion Or vbYesNo) = vbNo Then
Me.Undo
End If
End Sub

Again, you're going against the grain of Access. Only do this if you
REALLY have to.

-Tom.

[color=blue]
>Hi,
>I have a form for data entry and noticed that when i enter data and
>close the form, there is no warning and it writes directly to the
>table(s).
>
>Is this the default action?
>Is there a way to fire a warning saying "do you want to save the info or
>press cancel to close and not save etc"....
>
>Thanks
>
>
>
>*** Sent via Developersdex http://www.developersdex.com ***[/color]

  #3  
Old January 20th, 2006, 12:05 PM
jim Bob
Guest
 
Posts: n/a
Default Re: data entry forms writing directly to the tables?

Thanks for your comments.
Yeah, I know what you mean. I'm doing the db for highly un-tech people
and they posed this question. I'll "try" to convince them that this is
the way it is.
Cheers.



*** Sent via Developersdex http://www.developersdex.com ***
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles