Advertisement

05.08.2008 at 11:29AM PDT, ID: 23387137 | Points: 500
[x]
Attachment Details
Hyperlink functions between Access 2000 and Access 2003
Tags: Microsoft, Access, 2000 and 2003, hyperlinks on forms, Visual Basic Application
I used a hyperlink function in one of my forms to go to other forms in Access 2000.  Now we upgraded to Access2003 and the links no longer works.  Here is the code of one of the links

Private Sub Label5_Click()
'Exit Main module and go to Client Reference Tables Management
    Const strCompactorMDB = "C:\GAAP\FRISMClient\FRISMClientRef.mdb"
    Dim strCommandLine
    Dim dbl_D As Double

    strCommandLine = Quote(SysCmd(acSysCmdAccessDir) & _
    "MSACCESS.EXE") & " " & Quote(strCompactorMDB) & _
     " /cmd " & Quote(CurrentDb.Name)
   dbl_D = Shell(strCommandLine, vbNormalFocus)
   Application.Quit acQuitSaveAll ' close the current databasee
End Sub
Start your free trial to view this solution
Question Stats
Zone: Microsoft
Question Asked By: mdbbound
Question Asked On: 05.08.2008
Participating Experts: 1
Points: 500
Views: 0
Translate:
Loading Advertisement...
05.08.2008 at 12:54PM PDT, ID: 21527906

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.08.2008 at 01:49PM PDT, ID: 21528346

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.08.2008 at 02:28PM PDT, ID: 21528633

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.08.2008 at 02:38PM PDT, ID: 21528697

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.08.2008 at 11:28PM PDT, ID: 21530722

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 12:49PM PDT, ID: 21577334

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
05.08.2008 at 12:54PM PDT, ID: 21527906

Rank: Wizard

What does 'no longer works' mean?

The code works for me on A2003.
 
05.08.2008 at 01:49PM PDT, ID: 21528346
The hyperlinks on the form are set to open other .mdb files.  This works well in A2000.  Someone from this site helped with this back then.

Now it does not work.  When I click the hyperlinks it gives me a series of warning and error messages in this order:

1.   Info:  You can't exit the FRISM system now.  If you are running a Visual Basic Module that is using OLE or DDE, you may need to interrupt the module.  OK or Cancel are your options here.
2.   Warning:  Hyperlinks can be harmful to your computer and data.  To protect your computer, click only those hyperlinks from trusted sources.  Do you want to continue?  Yes or No here.  If yes then you get the error next.
3    Error:  Unable to open targetDB.mdb.  Cannot open specified file.

In A2000, when the targetDB.mdb opens, the main or welcome form created in another Welcome.mdb closes.  Each hyperlink targets various .mdbs each have its own purpose.

I will appreciate your help.
 
05.08.2008 at 02:28PM PDT, ID: 21528633

Rank: Wizard

I don't understand your continued use of  ' hyperlink' in this context.

The code you posted has nothing to do with hyperlinks. It is just code to open another db and close this one.
A hyperlink doesn't involve any code - it is just an address.

Perhaps that is the problem- have you defined the label as a hyperlink when it is not?
 
05.08.2008 at 02:38PM PDT, ID: 21528697
Peter57r:

It is a label and the code is on the OnClick event.  When I said hyperlink I mean that when I point to it the arrow turns into a hand just like in the web browser.

Anyhow you are right, I tried it again and it is working with A2003.  However it still gives me the messages I posted above and it gives me the security warning on a separate instance of A2003.  I have to say OK to the security warning because if not I will not be able to open my targetDB.mdb. And,  the welcome form (which is a separate .mdb) does not close when the target mdb opens.  So I have 2 instances of A2003

 
05.08.2008 at 11:28PM PDT, ID: 21530722

Rank: Wizard

As I said before it sounds like you have the label set as a hyperlink.
Set the hyperlink property to No.
 
05.15.2008 at 12:49PM PDT, ID: 21577334
Hi Peter

My issue is that with the code I provided above, once the target form (located in another mdb) opens, the originating form in the Welcome.mdb does not close.  It used to before when we were using A2000.  The user clicks one of the labels and it takes them to the proper mdb file without having to use the Windows Explorer.

Also, the warning, info, error messages I mentioned above are still there.
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628