472,328 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

Access Command Line Open Specific Record

Hello all. I have a database that I use to send email updates to
people. Everything is working fine, but one suggestion I keep getting
is to add a link to the automatic emails that will open up the
database, then open to the correct form and record. I can write a
simple macro to open a form and a specific record, but what I can't
figure out is how can I get that speciic record number in a command
line link?

Here's an example...

<EMAIL>
Dear John,
Mary just started a new report: Report 2005-024. Click Here to
view Report 2005-024.

Thank You!
</EMAIL>

I would like John to be able to "Click Here" to open up the database,
then open the correct Report. All users are within the same building,
using the same email system (Lotus Notes) and the same version of
Access (2002). Does anyone have any ideas how I can do this?

Possibly something like this...
"C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE /x
openReport('2005-024')

Thank You!

Nov 13 '05 #1
3 4069
This may be what you're after. From the help file:

/cmd
Specifies that what follows on the command line is the value that will be
returned by the Command function. This option must be the last option on the
command line. You can use a semicolon (;) as an alternative to /cmd.

Use this option to specify a command-line argument that can be used in
Visual Basic code.

Next, in VBA you would use the Command function to access this information.

--
Wayne Morgan
MS Access MVP
"Chris" <ch***@chriswilliams.net> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Hello all. I have a database that I use to send email updates to
people. Everything is working fine, but one suggestion I keep getting
is to add a link to the automatic emails that will open up the
database, then open to the correct form and record. I can write a
simple macro to open a form and a specific record, but what I can't
figure out is how can I get that speciic record number in a command
line link?

Here's an example...

<EMAIL>
Dear John,
Mary just started a new report: Report 2005-024. Click Here to
view Report 2005-024.

Thank You!
</EMAIL>

I would like John to be able to "Click Here" to open up the database,
then open the correct Report. All users are within the same building,
using the same email system (Lotus Notes) and the same version of
Access (2002). Does anyone have any ideas how I can do this?

Possibly something like this...
"C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE /x
openReport('2005-024')

Thank You!

Nov 13 '05 #2
Thanks for your reply, but I am not sure exactly how to do what you
have explained.

I just want to make sure I get this right.

In the email have a link similiar to this?
C:/Program Files/MSAccess.exe /x openReport /cmd 2005-024

I am not sure how to get the 2005-024 from the email to the database.
Can you please explain a little more?

Thanks!

Nov 13 '05 #3
I don't know how to get the information out of the email. The folks in the
Outlook newsgroup may be able to help you. This was just simply a method of
getting information into Access via the command line as you open it. If you
have the information you need to know which record to go to, you could pass
this information in via the command line. Check for the value in the Load
event of your startup form and move to the record.

--
Wayne Morgan
MS Access MVP
"Chris" <ch***@chriswilliams.net> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Thanks for your reply, but I am not sure exactly how to do what you
have explained.

I just want to make sure I get this right.

In the email have a link similiar to this?
C:/Program Files/MSAccess.exe /x openReport /cmd 2005-024

I am not sure how to get the 2005-024 from the email to the database.
Can you please explain a little more?

Thanks!

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Josh Strickland | last post by:
I am attempting to create an Access database which uses forms to enter data. The issue I am having is returning the query results from the Stored...
4
by: Sami | last post by:
I hope someone will tell me how to do this without having to do any VB as I know nothing in that area. I am a rank beginner in using Access. I...
4
by: Ed Mana | last post by:
I have an Access app that I need to automate in 2 ways: 1. I need to have the app open and print a specific report once each day at a specific...
8
by: Thats Me | last post by:
Background: Access 2000 running on Windows 2000, Did not design inherited (three previous database maintainers in last 18 months), Non-existent...
1
by: Roy Gourgi | last post by:
Hi, I am using VS.NET 2003 and I have made a connection to a MS Access database using the Server Explorer. Is this connection permanent, meaning...
2
by: Frav | last post by:
The Reps team have been experiencing that Access 2002 unexpectedly quits while working and also lots of Corruption Failures and "Record lock can...
2
by: Jpipher | last post by:
Let me explain what I am trying to accomplish... Two forms -- we'll call them "Main" and "Related" A command button on "Main" runs a union...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the...
3
by: getro | last post by:
Hi Everyone, I need to open an Access 2003 form to a specific record from a custom Outlook 2003 Appointment form. The form has a command button...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.