Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Need Help Opening MS ACCESS table

Posted on 2014-01-23
2
Medium Priority
?
165 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
[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 Comments
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
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…
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 …

704 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