Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Using Access form to assign values of variables in an Excel VBAprogram

I have created a VBA program for Ms Excel.But,to get desired results,
every time, I go into the code to change the values of variables.Is
there a way to get the values of variables stored in an Access table?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using Access form to assign values of variables in an Excel VBAprogram


YOu need to do a search for ADO method (ActiveX Data Object). There
are plenty of example of code on the web. You need to add two
references in your VBA to use the method.

from VBA menu tools - References


1) Microsoft Access XX.X object library
2) Microsfot ActiveX Data Objects X.X library

Use the latest versio of the two libraries on your PC.

You will make a connection to the Access file and then Open a
recordset. You can either use SQL to filter the recordset or scroll
through the record set from first entry to last entry.


There is very little differences between and Access table and an Excel
shreadsheet. they both have the same file structure like all Microsoft
Office products and the only difference is the Tool you use to open the
file (Access or Excel).


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=194580

http://www.thecodecage.com/forumz

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I assign variables KevinM[_2_] Excel Programming 7 August 11th 09 06:55 AM
how to access or copy excel form controls (eg. dropdownlist) values to a database Achu Excel Programming 0 May 30th 07 12:44 AM
Using solver variables to access database values passenger Excel Programming 0 November 6th 06 10:14 AM
Submitting form variables to Excel sheet Nahka-Sakke Excel Programming 0 September 20th 06 07:47 PM
Assign a variables value to a TextBox ed Excel Programming 1 October 25th 03 08:41 PM


All times are GMT +1. The time now is 01:36 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"