943,699 Members | Top Members by Rank

Ad:
Aug 11th, 2004
0

program design

Expand Post »
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??
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
leeegglestone is offline Offline
2 posts
since Aug 2004
Aug 11th, 2004
0

Re: program design

You would have to have two tables.
Record Table
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Record_ID (primary key)
  2. [ record information... ]

Record_Files Table
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. RecordFile_ID (primary key) <-- not entirely necessarly, but might be useful
  2. Record_ID_FR Foreign Key that points to a Record Table Entry
  3. Filename

For example:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. These entries in Record
  2. 0 Joe .... more of joe's info...
  3. 1 Max ....
  4. 2 Dani ....

Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Record_Files
  2. 0 0 JoeFile1
  3. 1 0 JoeFile2
  4. 2 1 MaxFile
  5. 3 0 JoeFile3
  6. 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
Reputation Points: 17
Solved Threads: 1
Junior Poster
cosi is offline Offline
153 posts
since Aug 2004
Aug 11th, 2004
0

Re: program design

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,
Reputation Points: 16
Solved Threads: 1
Posting Whiz in Training
mnemtsas is offline Offline
200 posts
since Jul 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Printing in VB
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: How to list the record orderby id when selecting distinct





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC