Solved

Link to open form in Access not working

Posted on 2014-02-14
4
721 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 38

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 38

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
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…
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.

617 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