Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 27th, 2003, 01:58 AM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default docmd.findrecord problem

hi,

i have a requirement to jump to certain record in my access adp, therefore i use 'docmd.findrecord'. the strange thing is record doesn't jump to matching criteria (doesn't access form_current also as it used to be). but if i step through the code, it works, also works if i place the code in different form in the same adp.

here's the part of the code:

    If boolEst Then
        strAns = MsgBox("Do you want to copy from template?", vbQuestion + vbDefaultButton2 + vbYesNo, gMsgBoxTitle)
        If strAns = vbNo Then
            mboolIsTmpl = False
            strAns = MsgBox("Do you want to copy from previous quotation?", vbQuestion + vbYesNo + vbDefaultButton2, gMsgBoxTitle)
            If strAns = vbNo Then
                txtTourCode.SetFocus
                Exit Sub
            End If
            If Not mboolCopyTour Then Exit Sub
        Else
            If Not mboolCopyTemplate Then
                mboolIsTmpl = False
                Exit Sub
            End If
        End If
    Else
        strAns = MsgBox("Do you want to copy from previous quotation?", vbQuestion + vbYesNo + vbDefaultButton2, gMsgBoxTitle)

        If strAns = vbNo Then
            txtTourCode.SetFocus
            Exit Sub
        End If
        If Not mboolCopyTour Then Exit Sub
    End If

' Call setControl(False, True)
    sfrTRQuotationIncDtl.Locked = False

    DoCmd.FindRecord mstrTourCode

- anyone can help?

thanks in advance







Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with DoCmd.Printout (Access2003) John Deutsch Access VBA 4 January 22nd, 2008 12:45 PM
Docmd.Openform problem mkobulni Access VBA 7 August 29th, 2007 09:05 AM
DoCmd.FindRecord MoDulus Beginning VB 6 0 March 14th, 2006 11:55 AM
DoCmd.FindRecord problem hottnikks_79 Access VBA 1 August 9th, 2005 07:58 AM
HEEELP!!! - strWhere Problem with DoCmd.OpenReport HenryE Access 1 August 4th, 2004 01:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.