473,396 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Hyperlink or command button

I have a continuous form. One of the fields shown is the Primary Key.
I want to be able for users to either:

Click on the ID number and be taken to that record which is in another
database

or

Click a "View Record" command button and be taken that record in
another database.

Which is the better approach and how to implement?

Thanks in advance.

Troy
Sep 6 '08 #1
1 3080
tr******@comcast.net wrote:
I have a continuous form. One of the fields shown is the Primary Key.
I want to be able for users to either:

Click on the ID number and be taken to that record which is in another
database

or

Click a "View Record" command button and be taken that record in
another database.

Which is the better approach and how to implement?

Thanks in advance.

Troy
I suppose you mean "another table" instead of database.

What I might have is a function called ViewRecord that will open the
form to display the other record. It returns a boolean True.

Then, in design mode, I'll highlight/select all fields the detail row
and pull up the property sheet, click into the OnDblClick event, and enter
=ViewRecord()

Then create a command button with View Record as the caption and enter
Dim blnView as boolean
If Me.Recordsetclone.Recordcount 0 then blnView = ViewRecord()
in the OnClick event.
Sep 6 '08 #2

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

Similar topics

3
by: Ray | last post by:
I recently upgraded from Access 97 to Access 2003 and just enter some new data into table via an input form. The form has one hyperlink field to contain a file path. In Access 2003, it appears...
3
by: hermawih | last post by:
Please help . I want to load the contents of another rtf document by double-clicking the words . Chapter1.rtf Chapter2.rtf Chapter3.rtf ....
4
by: sulemanzia | last post by:
I have a form with a Command button. i have a text box also which is bound to my Button. i have created a standard module and created an onclick event for my button which is something like this (...
0
by: Brian via AccessMonster.com | last post by:
I am trying to create a hyperlink to a report. I have used the "Select an object in this database" to add the hyperlink. The issue I have is that I am using a hyperlink-base to point the hundreds...
22
by: mforema | last post by:
Hey Everybody, I have an URGENT REQUEST (I need a reply within 24 hours, or I lose my job) I need help writing vba code for a command button. I want this button to locate a hyperlink in a table (the...
2
by: BobLaughland | last post by:
Hi There, I need a control on my site that is a hyperlink style control, but it must, 1) Have a property that can hold where the hyperlink is pointing to. (e.g. like the NavigateUrl property...
2
rsmccli
by: rsmccli | last post by:
Hello, Using Access 2002 I have a function that will accept a path to a document as a string, then open and print it. I have a table (tblScopeHyperlinks) that saves all hyperlinks inputted from...
8
by: shalakap | last post by:
hi All!!!!!!!!!! i m trying to place command button on reports in access but it doesnt show the onclick event to connect it with macro or procedure. secondly,i tried to place hyperlink on report...
6
by: vspsdca | last post by:
Hi, I'm a newbie here and does not really have any formal training on VBA. I just need help to get my hyperlink to work. I have a form in MS Access with a browse button where a user can select a...
10
by: sierra7 | last post by:
I'm trying to create a form where a user enters a document reference number and then clicks a command button to add a hyperlink to the document, via a file picker. Thanks to Adezii's excellent...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.