Solved

add user selected date to imported records

Posted on 2010-11-16
4
62 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 85

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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

617 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