Tech Support Guy banner
Status
Not open for further replies.
1 - 9 of 9 Posts

· Registered
Joined
·
130 Posts
Discussion Starter · #1 ·
I know:
A) I am probably doing this wrong. I am certainly doing SOMETHING wrong.
B) There is undoubtedly a faster/easier/better/more reliable (choose one or more) way

So I decided to ask the experts. I have an Access database of woodworking magazines that I am slowly populating. I thought it would be easier to just fill in the information in Excel (I'm pretty experienced with that) and then just import it into the Access table. That way I could kind of quality check the data before I put it in the database. Usually I just do one magazine at a time, save the Excel file and then import it into the Article table in the database (all are attached). Two things go wrong. First, when I import it, I always get an error message saying Access couldn't import the whole table and 0 records were not added. I don't understand that at all, because ALL the records always are added to the table. But, the other problem is that the first column in the Excel file, the magazine title (or at least an abbreviation thereof) is always blank in the Access table. I have to go back and populate it every time.

I have attached a zip file with a pared-down database and a populated Excel file. Can someone look at it and tell me how I can improve this process so I don't get error messages and do get all of the data I put in? Thanks. View attachment DB Problem.zip
 

· Registered
Joined
·
19,932 Posts
First of all it is usually much more efficient to enter data in to Access via a correctly formatted form than to use Excel and then Import it, even when you are more familiar with Excel. How do you do the import?
Do you use The File>Get External data
or use Visual Basic Code?
Last but not least, Your attachment does not appear to be an attachment, so we can't look at your data.
 

· Registered
Joined
·
130 Posts
Discussion Starter · #4 ·
OK, I'll try to add on the attachment once again. Meanwhile, I am File > Get External Data > Import path to bring the records in. I think I have it this time. I don't think I need the VBA. I just need to find out how I have mis-formatted or misaligned the data in the spreadsheet so it doesn't come in correctly. And thanks for the assistance.
 

Attachments

· Registered
Joined
·
130 Posts
Discussion Starter · #5 ·
Got the attachment to work, but forgot to mention I am heading out for a bike club (non-motorized) meeting and won't be back for a few hours. Thanks again.
 

· Registered
Joined
·
130 Posts
Discussion Starter · #7 ·
In Chicago, they have to include alternative sports. Ours is a bike and ski club (mostly cross-country). Unfortunately, this year there hasn't been enough snow for cross-country, so we've been doing mostly bikes, but now it's even too cold for that.
 

· Registered
Joined
·
19,932 Posts
ddockstader, first of all the "0 records not added" actually means exactly what it says, no records were not added, when the count goes above zero it means that some records were not added.
The problem with your import is the Combo lookup characteristic of your Magazine Title field in the Access Table, if you remove it and make the box a straight forward "text" box you won't have this problem.
The Lookup field is not the best method to use a combo, I know it is easy and convenient to set up but it prevents a lot of other things from happening.
The best way to have a combo is in a form, the best way to input data directly in to Access is also in a form.
If you want me to create a suitable query/form combination for inputting your data straight in to the table rather than putting it in to Excel first and then Importing it just let me know.
 

· Registered
Joined
·
130 Posts
Discussion Starter · #9 ·
Thanks. That was all I needed to know. I can probably figure out how to make a form in Access. That's the way I learn most everything, by being forced to. I just took the path of least resistance and did it in Excel. And then I couldn't figure out why it wouldn't import that first column. Let me play around with it for a while and if I get stuck, I'll call for help. But I really appreciate the analysis that tells me why it wasn't working. Thanks again.
 
1 - 9 of 9 Posts
Status
Not open for further replies.
Top