Excel Forms Into A Databases
Author
Discussion

wn3

Original Poster:

294 posts

250 months

Wednesday 21st March 2007
quotequote all
Morning all

I'm just about to finish my first of two nights shifts, and have spent best part of the last 11 hours messing and fiddling with excel.

I have no problem creating forms, to allow for user input, and check boxes to be checked, but what I have no clue how to do (but need to do) is somehow export all the data into an access database.

Ideally, i'd like a button on the original spreadsheet which would handle the whole process.

It's a bit of an odd request and to be honest, i'm not expecting any replies, but - thought i'd put it out there for the PH techies to ponder.

Cheers


Adam

tycho

12,296 posts

304 months

Wednesday 21st March 2007
quotequote all
Is this any help?

tigger1

8,478 posts

252 months

Wednesday 21st March 2007
quotequote all
Maybe I've missed the point, but couldn't you create the forms in access in the first place?

Don

28,378 posts

315 months

Wednesday 21st March 2007
quotequote all
The answer is Visual Basic For Applications (VBA).

Presumably your forms collect data from users onto a sheet in the Excel workbook. You can connect a VBA function to a button on a form. "All" you need then do is code up the VBA such that it sequentially navigates through the data you have collected on a sheet somewhere and inserts records into an Access table.

A simple matter for any competent "Microsofty" programmer.

The VBA could handle error situations quite well too - like an inability to connect to the Access database and so on.

If you aren't a programmer, however, this may present a challenge. Its not end-user stuff to do. Sadly I don't know if there are any end-user friendly methods of doing this as, since I am a programmer, programming is the easy way to do almost anything for me.


And yes. Why aren't you doing the forms in Access? Much easier. I take it the people who will finally fill in the data on the sheet won't have access to Access (hoho)?