Solved

Need Help Opening MS ACCESS table

Posted on 2014-01-23
2
153 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
Comment Utility
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
Comment Utility
Thanks
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

763 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

10 Experts available now in Live!

Get 1:1 Help Now