Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

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

Reply
 
Old 08-21-2008   #1 (permalink)
noservice


 
 

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

My System SpecsSystem Spec
Old 08-22-2008   #2 (permalink)
noservice


 
 

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

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.

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
HP Easy Setup Frontend General Discussion
ACCESS 2003 Linking Tables Roadblock- PLEASE HELP!!!!!!! Vista hardware & devices
Help!! ACCESS 2003 linking tables Vista General
implementing get-item PowerShell
Vista firewall frontend Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46