Solved

Link to open form in Access not working

Posted on 2014-02-14
4
704 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
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…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

910 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