A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

building and submitting a form bound to a recordset



 
 
Thread Tools Display Modes
  #1  
Old February 10th, 2006, 11:27 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default building and submitting a form bound to a recordset

Hi group-

I have a form that is bound to a SQL database in an adp project. I have
disabled navigation buttons on the form.

I would only like for users to be able to submit a new record. If the user
closes the form or cancels, this record should not be saved in the database.

How do I achieve this submit 'on click' event? Once the user clicks the
submit button, all the form controls should basically be a new row in the
table; however the very simple code below does not provide the
functionality. I expected that the record would be a in the database, and
the form refreshes to basically a new record. The form does refresh to a new
recordset, but i don't see the old one stored in the database.


Private Sub Submit_Click()
DoCmd.GoToRecord , , acNewRec
End Sub


I am further more confused, because even though the navigation buttons are
disabled, when i do Mouse Up and Mouse Down, I can view the form I just
submitted, that is not available in the data table. The form and database
are both in the same ADP project.


Insight would be most helpful!


Thanks




  #2  
Old February 11th, 2006, 12:23 AM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default building and submitting a form bound to a recordset

set the form's data entry to Yes.

HTH,
Brian

"Anyan" wrote in message
...
Hi group-

I have a form that is bound to a SQL database in an adp project. I have
disabled navigation buttons on the form.

I would only like for users to be able to submit a new record. If the user
closes the form or cancels, this record should not be saved in the

database.

How do I achieve this submit 'on click' event? Once the user clicks the
submit button, all the form controls should basically be a new row in the
table; however the very simple code below does not provide the
functionality. I expected that the record would be a in the database, and
the form refreshes to basically a new record. The form does refresh to a

new
recordset, but i don't see the old one stored in the database.


Private Sub Submit_Click()
DoCmd.GoToRecord , , acNewRec
End Sub


I am further more confused, because even though the navigation buttons are
disabled, when i do Mouse Up and Mouse Down, I can view the form I just
submitted, that is not available in the data table. The form and database
are both in the same ADP project.


Insight would be most helpful!


Thanks






 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:54 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.