Solved

add user selected date to imported records

Posted on 2010-11-16
4
20 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
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.

772 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

11 Experts available now in Live!

Get 1:1 Help Now