Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old September 6th, 2008, 04:45 PM
troy_lee@comcast.net
Guest
 
Posts: n/a
Default 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
  #2  
Old September 6th, 2008, 10:05 PM
Salad
Guest
 
Posts: n/a
Default Re: Hyperlink or command button

troy_lee@comcast.net wrote:
Quote:
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.


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles