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  

Command button - add entry - getting error.



 
 
Thread Tools Display Modes
  #1  
Old December 27th, 2006, 11:20 PM posted to microsoft.public.access.forms
Bonni Wilbourne
external usenet poster
 
Posts: 22
Default Command button - add entry - getting error.

I get the error: can't go to specified record.

I am using the form to enter production numbers.

This is the code created when I used the command button wizard:

Private Sub Command32_add_entry_Click()
On Error GoTo Err_Command32_add_entry_Click


DoCmd.GoToRecord , , acNewRec

Exit_Command32_add_entry_Click:
Exit Sub

Err_Command32_add_entry_Click:
MsgBox Err.Description
Resume Exit_Command32_add_entry_Click

End Sub

-- Thanks!!
Bonni
  #2  
Old December 27th, 2006, 11:43 PM posted to microsoft.public.access.forms
missinglinq via AccessMonster.com
external usenet poster
 
Posts: 545
Default Command button - add entry - getting error.

The first thing that comes to mind is that the form's Allow Additions is set
to NO. Go to the form's Properties Box, click on the Data tab and set it to
YES. IF you want users to be able to edit or delete records, make sure
AllowEdits and AllowDeletions are set to YES also. There are other ways (in
code) that the form could be set to not allow additions, but, assuming thisis
your db abd not inherited from someone else, you'd know if you'd coded this.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via http://www.accessmonster.com

  #3  
Old December 28th, 2006, 01:40 AM posted to microsoft.public.access.forms
Bonni Wilbourne
external usenet poster
 
Posts: 22
Default Command button - add entry - getting error.

Thanks I'll try that.

Unfortunatly this is part my db and part inherited. The original author was
a programmer and wrote quite a bit of VB into the db. This form is all me
so it is pretty basic.
--
Bonni


"missinglinq via AccessMonster.com" wrote:

The first thing that comes to mind is that the form's Allow Additions is set
to NO. Go to the form's Properties Box, click on the Data tab and set it to
YES. IF you want users to be able to edit or delete records, make sure
AllowEdits and AllowDeletions are set to YES also. There are other ways (in
code) that the form could be set to not allow additions, but, assuming thisis
your db abd not inherited from someone else, you'd know if you'd coded this.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via http://www.accessmonster.com


  #4  
Old December 28th, 2006, 02:10 PM posted to microsoft.public.access.forms
Bonni Wilbourne
external usenet poster
 
Posts: 22
Default Command button - add entry - getting error.

I checked the Allow additions and it is set to yes. Anything else I can try?
thanks
--
Bonni


"missinglinq via AccessMonster.com" wrote:

The first thing that comes to mind is that the form's Allow Additions is set
to NO. Go to the form's Properties Box, click on the Data tab and set it to
YES. IF you want users to be able to edit or delete records, make sure
AllowEdits and AllowDeletions are set to YES also. There are other ways (in
code) that the form could be set to not allow additions, but, assuming thisis
your db abd not inherited from someone else, you'd know if you'd coded this.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via http://www.accessmonster.com


 




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 11:45 PM.


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