Discussion Locked

Access Command Button - coding

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi

I need to add a command button to a db form that will allow the user to browse windows explorer and effectively upload a word doc into the db which will then be viewable by other users. Adding the button to the form is not a problem, I need the actual code to get the button to work.

Any help would be greatly appreciated!!!

1 reply

by frog66

There are 2 parts:

Part 1
if you are running 2000 or earlier, you will need to run some advanced code to produce the file dialog box so you can pick the file you want.

If you are running XP or 2003 you can use an internal library to select the file.

Part 2
when you talk of uploading a word doc, are you only providing a path/filename reference or are you actually wanting to import the contents of the word doc into an access table?

This discussion is closed to new replies.