473,574 Members | 2,331 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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('200 5-024')

Thank You!

Nov 13 '05 #1
3 4189
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***@chriswil liams.net> wrote in message
news:11******** **************@ c13g2000cwb.goo glegroups.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('200 5-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***@chriswil liams.net> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.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
11682
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 Procedure back in to the Access Form. tCetecM1CUST (SQL Table that contains the Customer Information) tAccountingDetail (SQL Table that contains the information in the form) frmAccountingEntry...
4
4712
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 have created a database consisting of student athletes.  I have now learned how to join two different tables in a query so that I might generate a report. Specifically, student athletes at a...
4
2216
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 time. 2. I need to have the app take the same report, print as a .pdf, and store it in a specific folder. Both things need to happen even if Access is not open on the PC.
8
4867
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 comments for existing code modules and objects, six users on LAN, BE on shared server. Each user has own FE to allow special report & query creation, each user has common forms for input and edit of...
1
2696
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 that it will be there every time I reopen my program. Furthermore, how do I add, delete, find, update a record? TIA Roy
2
6241
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 not update" messages since the upgrade from Windows 2000 and Access 200 to Windows XP and Access 2002 (XP) was done. Now, they are working and at anytime in anywhere of the application access...
2
3369
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 query. The union query results are shown in "Related" in Datasheet view. I want to then double click on the textbox ! and either move ! to that specific record or if I need to I am willing to open...
4
12426
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 data entered through a form. the real question is this: can Access create the document and place it as an OLE object to the relevant table? Any help is greatly appreciated. Ricky
3
3986
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 that would pass a record id to access and open the appropriate record. I have searched through many Outlook and Access books and the web and cannot seem to find any info on this. Your help would be...
0
7826
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8085
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7838
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8126
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5637
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5328
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3763
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2257
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1090
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.