•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 456,530 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,824 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 2558 | Replies: 2
![]() |
•
•
Join Date: Aug 2004
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
Im starting to design some software/system for work even though its not in my job description, and learned a little of it at college so thought id speed the process up rather than waiting for the IT monkeys downstairs to get their act together.
I will be including a database which needs to be written into by forms and info displayed.
I have a small question too
Is it possible for me to have a field in my table that links to one record, and has either the file path of one or multiple files to it or be actually attached.
If so then would i be able to pull up the data from the database, then launch the actual file via the program, view it withinin the program, or view it with the external sofware that relates to the type of file (likely to be pdf)
Basically im wanting to scan loads of files, and depending if i can get one file or one section scanned into one pdf file, or if i have to save them as seaparate pages determines this. These are gonna then be linked into the database where i will create records for each.
Im trying to speed up Paperless office in a way, even though i have problems with the scanner and the way it can save the scans, but thought id at least start designing a reasonable system
anyone help??
I will be including a database which needs to be written into by forms and info displayed.
I have a small question too
Is it possible for me to have a field in my table that links to one record, and has either the file path of one or multiple files to it or be actually attached.
If so then would i be able to pull up the data from the database, then launch the actual file via the program, view it withinin the program, or view it with the external sofware that relates to the type of file (likely to be pdf)
Basically im wanting to scan loads of files, and depending if i can get one file or one section scanned into one pdf file, or if i have to save them as seaparate pages determines this. These are gonna then be linked into the database where i will create records for each.
Im trying to speed up Paperless office in a way, even though i have problems with the scanner and the way it can save the scans, but thought id at least start designing a reasonable system
anyone help??
You would have to have two tables.
Record Table
Record_Files Table
For example:
To find Joe's files, you know Joe's ID is 0, so get all from Record_Files that has the Record_ID_FR = 0.
Good luck! I'd recommend picking up a book on database design practices. Usually just reading the intro chapter can give you a good idea of how to do things.
Ed
Record Table
Record_ID (primary key) [ record information... ]
Record_Files Table
RecordFile_ID (primary key) <-- not entirely necessarly, but might be useful Record_ID_FR Foreign Key that points to a Record Table Entry Filename
For example:
These entries in Record 0 Joe .... more of joe's info... 1 Max .... 2 Dani ....
Record_Files 0 0 JoeFile1 1 0 JoeFile2 2 1 MaxFile 3 0 JoeFile3 4 2 DaniFile
To find Joe's files, you know Joe's ID is 0, so get all from Record_Files that has the Record_ID_FR = 0.
Good luck! I'd recommend picking up a book on database design practices. Usually just reading the intro chapter can give you a good idea of how to do things.
Ed
•
•
Join Date: Jul 2004
Location: Adelaide, Australia
Posts: 191
Reputation:
Rep Power: 5
Solved Threads: 1
The previous posters advice is good, but didn't answer some of your question. Yes you can open some files in VB forms given that they support OLE. Try searching your MSDN documentation for OLE. So word, excel and so on will definitely work.
I'm not sure about PDF. You'll certainly be able to open it using the ShellExecute API call, given, of course, they have Acrobat Reader installed.
Cheers,
I'm not sure about PDF. You'll certainly be able to open it using the ShellExecute API call, given, of course, they have Acrobat Reader installed.
Cheers,
Mark Nemtsas
Time and Billing Software - Time Tracking Software - Roller Shutters - Roller Blinds -
Baby Books
Time and Billing Software - Time Tracking Software - Roller Shutters - Roller Blinds -
Baby Books
![]() |
•
•
•
•
•
•
•
•
DaniWeb Visual Basic 4 / 5 / 6 Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Web Graphic Programs....Design? (Graphics and Multimedia)
- PLS help me do this program.. (C++)
- Executable program design question.... (Java)
- program (C)
- Program design (help) (C++)
- Program design tools (C++)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Printing in VB
- Next Thread: How to list the record orderby id when selecting distinct


Linear Mode