Solved

add user selected date to imported records

Posted on 2010-11-16
4
30 Views
Last Modified: 2016-04-11
I have a daily file i import after running a saved macro on an automated report from our IT department. The macro puts the file into a format that is usefull for importing and would like the user to select the date for the records being imported so i can use the data to report on later down the road.

i hope this makes sense to someone. I am not good with writing programmimg language but can interpret and follow it for the most part so be patient as i go through this task with you.
0
Comment
Question by:TCR
4 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 34145341
How are the records being imported? Are you using the builtin menu options, or are you using code?

Do they get imported to an EXISTING table, or to a NEW table.

If a NEW table, you can just run this after the import:

Currentdb.Execute "UPDATE YourNewTable SET YourDateField=#" & Now & "#"

If an Existing table, then assuming that all other records already have a value in the YourDateField, you could do this:

Currentdb.Execute "UPDATE YourNewTable SET YourDateField=#" & Now & "# WHERE YourDateField IS NULL"

You'd have to do this in VBA, of course. If you'll give us some more information regarding how you're doing this, we can probably assist further.
0
 

Author Comment

by:TCR
ID: 34145662
Currently i have a macro set to auto import the file to an exsisting table with a saved import. The code for exsisting tables would not work if a day was missed(weekends) i would need to have the user go back and import that date.
0
 
LVL 24

Expert Comment

by:broomee9
ID: 41544408
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
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…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
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.

948 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now