Solved

Open new form at current record

Posted on 2014-11-10
1
321 Views
Last Modified: 2014-11-11
Hi,
I am looking for a bit of help

I have a form in datasheet view named "frm_qry_peding_records" when I click on "ID" i want to go to another form "frm_qry_tbl_main_edit" and open the record. Here is the query I tried

If Not Me.NewRecord Then
DoCmd.OpenForm "frm_qry_tbl_main_edit",,, where Forms.frm_qry_tbl_main_edit.ID = me.ID
End If

Open in new window


I'm get an erro. Please help
0
Comment
Question by:damixa
1 Comment
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 total points
ID: 40433623
you have the syntax wrong.  Try:

If Not Me.NewRecord Then
    DoCmd.OpenForm "frm_qry_tbl_main_edit",,, "[ID] = " & me.ID
End If
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now