Solved

Need Help Opening MS ACCESS table

Posted on 2014-01-23
2
157 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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

856 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