954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

OLE object not saved in back-end

Hi guys,
I have a form for tracking inquiry records. On this form the user has the capability to add files (.doc, .pdf, .jpg etc) and save as attachments to the records.

I have a form ‘Add Attachment’ (called from the add record screen) which opens a ‘Windows file select’ dialog box to select a file. I am able to select / add the file and create a record but for some reason when the file (.jpg/.doc) is attached it is inserted in the incorrect record in the back-end (MS Access).

I greatly appreciate any inputs, thanks!

Attachments code.doc (21KB)
success_always
Newbie Poster
3 posts since May 2009
Reputation Points: 10
Solved Threads: 0
 

It might be they way you are using the select max. For future reference (without spaces) use the [ code ] [ / code ] tags to display your code (makes it easier to read).
Perhaps you should do a count or if the field is a unique id, do a top 1 desc to get the last id used.

Good Luck

vb5prgrmr
Posting Virtuoso
1,912 posts since Mar 2009
Reputation Points: 156
Solved Threads: 296
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You