473,398 Members | 2,088 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,398 software developers and data experts.

Implementing hyperlinking in SQL. (Linked tables to Access frontend.)

I have recently uploaded my access 2003 tables to an SQL server. I've
modified most of the code and everything is working properly except
for the hyperlink fields. I have several fields which are references
(links) to files on our server. It worked fine with the
CmdInsertHyperlink in access, but now that we have linked tables, I
get this error message;

"2046: The command or action 'InsertHyperlink' isn't available now."

I believe I need to modify my code with Insert statements, but I am
just now teaching myself the intricacies of SQL. Would anyone here
have any advice for accomplishing this with linked tables?

Below is a code sample to illustrate how I'm currently doing this:

Private Sub ContractLink_Click()

Dim Response, MyString

On Error GoTo ContractLink_Click_Error

If ValidLink(Me.Contract) = False Then

Response = MsgBox("file not found. Would you like to add one now?",
vbYesNo, "Add Document")

If Response = vbYes Then ' User choose Yes.

Contract.Visible = True ' text box to hold hyperlink

Contract.SetFocus

DoCmd.RunCommand acCmdInsertHyperlink

ContractLink.SetFocus

Contract.Visible = False

Else ' User choose No.

MyString = "No" ' Perform some action.

Contract.Visible = False

ContractLink.SetFocus

End If

End If

exit_ContractLink_Click:

Exit Sub

ContractLink_Click_Error:

If Err <2501 Then

MsgBox Err & ": " & Err.Description

Resume exit_ContractLink_Click

If (Err = conErrDoCmdCancelled) Then
Resume Next
End If

End If

End Sub
Also, if you know of any good books that I can reference for further
learning, that would be most appreciated.
Sincerely,

M. Carrizales
Aug 21 '08 #1
1 1248
I hope this is the correct group, as I really need help solving this
issue. Thank you in advance to whomever assists me, or at the very
least, points me in the right direction.

Aug 22 '08 #2

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

Similar topics

6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
3
by: David | last post by:
We recently translated the backend db from Access(97) to SQL Server. We are still using Access frontends. I have an update query in the Access front end that uses a lookup table to populate...
3
by: Enzo's Dad | last post by:
I have an Access frontend for an SQL backend. I'm simply using ODBC to connect. On my copy of this Access database, I have four linked tables and all works well. If I copy the Access MDB to...
1
by: Julia | last post by:
Hello there. I have a question somewhat related to this topic, and I don't know where else to go. I hope somebody can help. I've created a database in access, that I'd like to share with less...
2
by: Jill Elaine | last post by:
I am building an Access 2002 frontend with linked tables to an encrypted Paradox 7 database. When I first create these linked tables, I'm asked for the password to the encrypted Paradox database,...
4
by: Mark | last post by:
Hi All, I created a database for a friend a few months ago which has been working fine. However, he now wants a few changes implemented to accommodate his growing needs. When I gave him the...
22
by: RayPower | last post by:
I'm having problem with using DAO recordset to append record into a table and subsequent code to update other tables in a transaction. The MDB is Access 2000 with the latest service pack of JET 4....
1
by: odrap | last post by:
I have a database written in MS Access 2.O that i'm intend to convert to MS ACCESS 2007. The database is a multiuser application which consist of a application database as the frontend and a Data...
4
by: christopher.catlin | last post by:
Hi, I'm currently designing a database for a construction co and learning how to use access on the fly. I'm having a few problems with the re- use of data if I link tables using relationships...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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
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...

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.