[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Excel Button > Access Form > Goto Record

Posted on 2003-11-13
7
Medium Priority
?
321 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
6 Comments
 
LVL 30

Accepted Solution

by:
nmcdermaid earned 252 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 44

Assisted Solution

by:Arthur_Wood
Arthur_Wood earned 248 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Suggested Courses

834 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