Solved

add user selected date to imported records

Posted on 2010-11-16
4
42 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
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…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

785 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