Solved

Link to open form in Access not working

Posted on 2014-02-14
4
700 Views
Last Modified: 2014-02-25
I have an Access form where I have two Hyperlinks.

1. The first link is to the Quote page and it works fine.
2, The second link is to another Entry page. I copied the first link and changed the code to call the Entry Page.  It brings up the correct page but it does not bring up the record identified.  It opens the form as new.

below is the event procedure line I am using.
If you look at the filter on the Entry page, the filter is being sent to the new page correctly.

DoCmd.OpenForm "frmEngineeringEntry", acNormal, , "[QuoteID]=" & Me.[QuoteID].Value, acFormEdit, acWindowNormal

Thoughts?
0
Comment
Question by:btgtech
  • 2
4 Comments
 
LVL 8

Expert Comment

by:TheNautican
ID: 39860743
Try This

DoCmd.OpenForm "frmEngineeringEntry", acNormal, , "[QuoteID]='" & Me.[QuoteID].Value & "'", acFormEdit, acWindowNormal

Open in new window

0
 
LVL 34

Assisted Solution

by:PatHartman
PatHartman earned 120 total points
ID: 39860872
Check the properties on the Data tab of the form.  It sounds like DataEntry is set to Yes.  Setting the DataEntry property to Yes tells the form to open to a new record prepared for data entry.
0
 
LVL 20

Accepted Solution

by:
clarkscott earned 120 total points
ID: 39862611
I don't think you need the ".value" part of you "Me.[QuoteID].Value".  I've used this code a million times and simply used = me.quoteID.

Scott C
0
 
LVL 34

Expert Comment

by:PatHartman
ID: 39862945
Correct.  The .value property isn't necessary since that is the default property of the control.  But, that isn't causing the problem.
0

Featured Post

What Security Threats Are You Missing?

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

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

758 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

21 Experts available now in Live!

Get 1:1 Help Now