Solved

Open new form at current record

Posted on 2014-11-10
1
337 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 Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

749 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