Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 7th, 2008, 07:54 AM
Authorized User
 
Join Date: May 2007
Location: , , .
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default new record function getting locked in place

Hi folks,

I must have rebuilt this particular access 2000 database a dozen times now. For some reason I cannot fathom, the new record counter is regularly getting locked as on when the open form with link criteria is used.

The form has worked fine in the past and for weeks on end and then suddenly this crops up again.

This is the code that is currently there behind the open record button:

Private Sub btnopeninspect_Click()

    On Error GoTo errorhandler

    gstrcallingform = Me.Name
    btnclick = True

    Dim stDocName As String
    Dim stLinkCriteria As String

    stDocName = "frmfileinspect"

    stLinkCriteria = "[inspectid]=" & Me![txtinspectid]
    DoCmd.openform stDocName, , , stLinkCriteria

exitop:
    Exit Sub

errorhandler:
    generalerrorhandler Err.Number, Err.Description, fsmor, "btnopeninspect_click"
    Resume exitop
    Resume

End Sub

As you can see nothing special. However when a break is put in and the path followed, for the checks for new record in form_load, it displays new record value is -1 and therefore follows through the rest of the path correctly.

My question is how the heck is this happening and how the heck do I stop it.

Reply With Quote
  #2 (permalink)  
Old April 7th, 2008, 08:44 AM
Authorized User
 
Join Date: May 2007
Location: , , .
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is a continuance of the issue MMC helped with back in October 2007. Same form same routine, different result.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
append record whith do while function iisha64 Access VBA 0 February 19th, 2007 09:24 AM
Decimal place problem...ROUND function! kuku SQL Server 2000 9 July 9th, 2005 05:50 PM
Function to Find a Record me2357 Access VBA 5 March 10th, 2005 03:22 PM
Returning record in stored function with ADO nmbarbillo Oracle 0 June 15th, 2004 12:36 PM



All times are GMT -4. The time now is 08:19 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.