Solved

Need Help Opening MS ACCESS table

Posted on 2014-01-23
2
158 Views
Last Modified: 2014-02-27
Hello Experts!

I'm using MS Access 2K with Windows XP Professional.

I would like my user to be able to click a link I a simple query that opens a specific form. If this is possible, I would also like to specify a recordsource in the hyperlink.

My application is that I use a module to automatically read bounced email and populate a table with information about the bounced message.  

Our administrator views the table by clicking a command button that opens a simple query.  When a bad email address in our PROSPECT database is suspected, I would like to allow him to click a hyperlink in the query that opens a form tied to that prospect, so he can edit the email address or change it to to inactive.

The form name is frmProspectInfo

When this form is opened, we can select the proper record by setting the recordsource to a specific account.   For example, to open frmProspectInfo with a Recordsource of AccountNumber=123.  (the module that builds the query will look up the account number)

Thanks
0
Comment
Question by:pcalabria
2 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 39802880
You can't do this from a QUERY view, but you can from a FORM. So if you create a Form based on that Query, you could use the OpenForm method:

DoCmd.OpenForm "YourForm", , , "ProspectID=" & Me.ProspectID

Obviously you'd have to modify this to reflect your Forms, Tables and Fields.

Note too that if "ProspectID" is a Text field, you use this syntax:

DoCmd.OpenForm "YourForm", , , "ProspectID='" & Me.ProspectID & "'"
0
 

Author Closing Comment

by:pcalabria
ID: 39891971
Thanks
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

761 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