Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 30th, 2007, 01:53 PM
Registered User
 
Join Date: Jun 2007
Location: Cairo, Cairo, Egypt.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Transfer Dynamic Data from Excel to Access DB ?

Hello , I need your help ....

I connect my program with MS Excel Cell with another program
through special code .

where XXXX is variable and its value changes every second or more .

when I add this code in Any Cell in my Excel sheet .
the value of cell changes according to value of XXXX in my program .

This is my Request :

I want a method like macro or anything else that help me to

Transfer The Value of Excel Cell to be a new input in Access data base , automatically every time the value of cell changes .

More Details :

Suppose that we have Excel sheet and MS Access Data base .
I put the code to a cell in excel sheet .

the float number is : 100.00
After 1 second the cell value becomes : 102.75

Now, I want Program that can determine this change in cell value
and create a new row in access DB and add the new value ( 102.75 )
as a new row at my access data base .

and Every Time the Cell value update , the new value adds as
a separated new row at my data base .

and at the same time , I want a Time column in Ms access DB .
That Save the Time when every new value enter the data base .

<center>I want know How can I do that ??? and with any language ???

I will be very thankful , if anyone can help me
and Give me a good solution for this problem .</center>


thank you so much


Jake Anderson
Reply With Quote
  #2 (permalink)  
Old July 2nd, 2007, 02:01 AM
Friend of Wrox
Points: 3,060, Level: 23
Points: 3,060, Level: 23 Points: 3,060, Level: 23 Points: 3,060, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2005
Location: , , .
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

You can use the following event to fire your DB updated code

Private Sub Worksheet_Change(ByVal Target As Range)

'MsgBox Target.Address

' Get the Target Value

' DB Update Code here


End Sub

You can also use Worksheet_Calculate() event also

Cheers
Shasur

to

http://www.dotnetdud.blogspot.com
Reply With Quote
  #3 (permalink)  
Old July 2nd, 2007, 11:11 AM
Registered User
 
Join Date: Jun 2007
Location: Cairo, Cairo, Egypt.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default


thank you so much Shasur

Your reply is so helpful

Good Luck my Friend



Jake Anderson
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transfer data from Excel to Access JezLisle Excel VBA 0 December 13th, 2007 01:25 PM
Data transfer from Access to Excel swaroop Access VBA 2 June 1st, 2007 10:30 AM
how to transfer data from excel to Access database swaroop Access VBA 5 April 13th, 2007 09:02 AM
how to transfer data from excel to Access database swaroop Excel VBA 1 April 12th, 2007 10:45 AM
Transfer Data to Excel one cell at a time mahulda ASP.NET 1.0 and 1.1 Basics 2 April 28th, 2004 04:36 PM



All times are GMT -4. The time now is 06:16 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.