PC Review


Reply
Thread Tools Rate Thread

Date Stamp when info is updated

 
 
NervousFred
Guest
Posts: n/a
 
      25th Jul 2008
I have an excel table that is imported from Access. I have a column named
Price and I need a column next to it called Date that will show when that
specific price is updated.

I have been searching around and most of the things I have come across have
not been working becuase everythime I update the entire table the dates
change with the table.

I need something that will only change when a specific cell changes.

Thanks!
 
Reply With Quote
 
 
 
 
XP
Guest
Posts: n/a
 
      25th Jul 2008
Hi,

I have handled this before by including an "Update" date column in the
MS-Access table, and then capture the date and time each record is updated in
MS-Access. Then when you import your records into Excel, the info is already
there...perhaps this would work?



"NervousFred" wrote:

> I have an excel table that is imported from Access. I have a column named
> Price and I need a column next to it called Date that will show when that
> specific price is updated.
>
> I have been searching around and most of the things I have come across have
> not been working becuase everythime I update the entire table the dates
> change with the table.
>
> I need something that will only change when a specific cell changes.
>
> Thanks!

 
Reply With Quote
 
NervousFred
Guest
Posts: n/a
 
      25th Jul 2008
Hrmm didn't think of that.

How would I do that in a query in access? My data that I use to import into
excel is a query of a larger database.

Also would each date remain the same and only update if its corrisdoning
cell updated or would all of the dates update each time the query was
refreshed.

As I said earlier, I just need each date to update ONLY if the price next to
it CHANGES.

"XP" wrote:

> Hi,
>
> I have handled this before by including an "Update" date column in the
> MS-Access table, and then capture the date and time each record is updated in
> MS-Access. Then when you import your records into Excel, the info is already
> there...perhaps this would work?
>
>
>
> "NervousFred" wrote:
>
> > I have an excel table that is imported from Access. I have a column named
> > Price and I need a column next to it called Date that will show when that
> > specific price is updated.
> >
> > I have been searching around and most of the things I have come across have
> > not been working becuase everythime I update the entire table the dates
> > change with the table.
> >
> > I need something that will only change when a specific cell changes.
> >
> > Thanks!

 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      25th Jul 2008
Assuming your Price column is Column C and your Date column is Column D,
then give this worksheet event code a try. To install it, right-click the
tab for the worksheet containing your table and copy/paste the following
code into the code window that appeared...

'********** START OF CODE **********
Dim CellValue As Variant

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 3 Then
If Target.Value <> CellValue Then Cells(Target.Row, "D").Value = Now
End If
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column = 3 Then CellValue = Target.Value
End Sub
'********** END OF CODE **********

Now, whenever you change a value in Column C, the current date/time will be
entered in the same row in Column D. There are two logical statements for
Column C (they are Target.Column=3) that you will need to change in case I
guessed wrong as to which column has your Prices in it.

Rick


"NervousFred" <(E-Mail Removed)> wrote in message
news:5A77FE78-66EF-4B08-8E0A-(E-Mail Removed)...
>I have an excel table that is imported from Access. I have a column named
> Price and I need a column next to it called Date that will show when that
> specific price is updated.
>
> I have been searching around and most of the things I have come across
> have
> not been working becuase everythime I update the entire table the dates
> change with the table.
>
> I need something that will only change when a specific cell changes.
>
> Thanks!


 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      25th Jul 2008
In looking at the other sub-thread to your posting, I think the answer I
gave you is not what you are looking for. The code I posted assumes you
loaded your data from wherever and will insert a date in response to you
changing a single cell by typing in a new value. If you are reloading new
information over top of the old data, the code I posted won't work for you.

Rick


"Rick Rothstein (MVP - VB)" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> Assuming your Price column is Column C and your Date column is Column D,
> then give this worksheet event code a try. To install it, right-click the
> tab for the worksheet containing your table and copy/paste the following
> code into the code window that appeared...
>
> '********** START OF CODE **********
> Dim CellValue As Variant
>
> Private Sub Worksheet_Change(ByVal Target As Range)
> If Target.Column = 3 Then
> If Target.Value <> CellValue Then Cells(Target.Row, "D").Value = Now
> End If
> End Sub
>
> Private Sub Worksheet_SelectionChange(ByVal Target As Range)
> If Target.Column = 3 Then CellValue = Target.Value
> End Sub
> '********** END OF CODE **********
>
> Now, whenever you change a value in Column C, the current date/time will
> be entered in the same row in Column D. There are two logical statements
> for Column C (they are Target.Column=3) that you will need to change in
> case I guessed wrong as to which column has your Prices in it.
>
> Rick
>
>
> "NervousFred" <(E-Mail Removed)> wrote in message
> news:5A77FE78-66EF-4B08-8E0A-(E-Mail Removed)...
>>I have an excel table that is imported from Access. I have a column named
>> Price and I need a column next to it called Date that will show when that
>> specific price is updated.
>>
>> I have been searching around and most of the things I have come across
>> have
>> not been working becuase everythime I update the entire table the dates
>> change with the table.
>>
>> I need something that will only change when a specific cell changes.
>>
>> Thanks!

>


 
Reply With Quote
 
FSt1
Guest
Posts: n/a
 
      25th Jul 2008
hi
sounds like the price needs to be updated in access and the date of update
entered into access THEN downloaded to excel.

Regards
FSt1

"NervousFred" wrote:

> I have an excel table that is imported from Access. I have a column named
> Price and I need a column next to it called Date that will show when that
> specific price is updated.
>
> I have been searching around and most of the things I have come across have
> not been working becuase everythime I update the entire table the dates
> change with the table.
>
> I need something that will only change when a specific cell changes.
>
> Thanks!

 
Reply With Quote
 
NervousFred
Guest
Posts: n/a
 
      25th Jul 2008
Rick,

Yes, I have the table set to refresh everytime the spreadsheet is opened.
This will affect the dates in your code correct?

Anyone know how to do the time stamps in Access? If not I can just always
post in the access forums.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exporting Subject Line and Date Stamp info to Excel David Singh Microsoft Outlook Discussion 1 26th Jul 2008 05:28 AM
W2K DNS Record Time stamp not updated ESW Microsoft Windows 2000 Active Directory 2 6th Jun 2006 03:31 PM
date stamp Can I add a date stamp in a Text or Memo Field =?Utf-8?B?TWljaGFlbCBM?= Microsoft Access Database Table Design 10 11th Apr 2005 02:29 AM
time date stamp info tony roth Windows XP MovieMaker 4 6th Jul 2004 10:14 PM
time and date stamp contact info Bill Cotton Microsoft Outlook Contacts 1 20th Jan 2004 02:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:43 AM.