Solved

Excel Button > Access Form > Goto Record

Posted on 2003-11-13
7
313 Views
Last Modified: 2010-05-18
hi

Ive been asked if it is possible to create a button in excel that when clicked, takes data from another field (containing a job number), opens up Access, goes to a form and jumps to a record with the job number in question.

There are 2 problems with this that need to be considered:-

-The database requires a username and password.
-The Access version is absurdly ancient! (Version2).

Im assuming ill have to create a macro rather than a VB Command button in excel but as of yet i have no idea what to do with this. The Excel version is 2000.

Thanks

Ross
0
Comment
Question by:Kinsy
7 Comments
 
LVL 30

Accepted Solution

by:
nmcdermaid earned 63 total points
ID: 9738422
You can run VBA code from an Excel command button.

You can write VBA to open an Access DB (password etc. included) and go to a record.

Firstly you will need to add the Access 2.0 object library in the VBA ebvironment. Then you will be able to access methods and properties of the database.

Having said that, I've never done VBA for a version of Access that old, so you will just have to try it and see.

0
 

Author Comment

by:Kinsy
ID: 9738465
This is the thing; i dont think Access V2 even uses VB!

Whether or not VBE can control Access i dont know!
0
 
LVL 30

Expert Comment

by:nmcdermaid
ID: 9738509
Just try going into your VBA editor in Excel (ALT-F11), press Tools then References then see if you can find Access 2.0 in the list

If you can then you may be able to use VBA to run Access 2.0 programattically.

If you can't then your other options are:

1. See if Access 2.0 will take command line options, if so you may be able to tell it to do what you want... however thats a long shot.

2. You may be able to linke to the tables in Access from your Excel, then jump to the data in Excel rather than Access. You may have your reasons for not doing this though.

0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 44

Assisted Solution

by:Arthur_Wood
Arthur_Wood earned 62 total points
ID: 9739100
what you will be doing, however, is NOT ruinning the Access form from within Excel.  Rather, you will be using EXCEL VBA to execute e query against the DATA in the Access Table, and then after you have retrieved the data from Access, displaying that data in the Excel spreadsheet.

Why are you still using Access 2.0?  That should be upgraded to a more recent version of Access as soon as possible.

AW
0
 

Author Comment

by:Kinsy
ID: 9740414
Its not up to me to make the decision to update Access V2. Its still in use because a vital business db was built in it and has been in use for many years.

The app i have been building is in Access 2000 however and a future project may be to update the db from v2 to 2000.
0
 
LVL 39

Expert Comment

by:stevbe
ID: 10025538
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Split: nmcdermaid {http:#9738509} & Arthur_Wood {http:#9739100}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

stevbe
EE Cleanup Volunteer
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question