Solved

Need Help Opening MS ACCESS table

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

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
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…

911 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

20 Experts available now in Live!

Get 1:1 Help Now