I am using picture2k.zip which I have downloaded
see here by Oldsoftboss http://www.access-programmers.co.uk/forums/showthread.php?t=62251
I want to use it in another database that I have already set up but I can't get it to work. I get this:
It works fine on it's own but not as a separate form in the other database. (I eventually want to integrate the picture into the main database form but I need it to work first)
This
is the bit it brings up with Dim db As DAO.Database highlighted
I have imported the table and the form and when I type in the filename to display (in the form) it updates the table as it should
I should add that I know no VB at all (although I managed to change the relative path without a problem but checking out other posts here)
Any help appreciated.
If I don't answer for a while it's because my Mrs is due to give birth imminently. I will get back here when I can
see here by Oldsoftboss http://www.access-programmers.co.uk/forums/showthread.php?t=62251
I want to use it in another database that I have already set up but I can't get it to work. I get this:
compile error
user defined type not defined
It works fine on it's own but not as a separate form in the other database. (I eventually want to integrate the picture into the main database form but I need it to work first)
This
is the bit it brings up with Dim db As DAO.Database highlighted
Code:
Private Function GetPathPart() As String
' Comments : Returns the path part of a string
' Parameters: strPath - string to parse
' Returns : path part
'
Dim db As DAO.Database
Dim strPath As String
Dim intCounter As Integer
Set db = CurrentDb
strPath = db.Name
db.Close
Set db = Nothing
For intCounter = Len(strPath) To 1 Step -1
If Mid$(strPath, intCounter, 1) = "\" Then
Exit For
End If
Next intCounter
GetPathPart = Left$(strPath, intCounter)
I have imported the table and the form and when I type in the filename to display (in the form) it updates the table as it should
I should add that I know no VB at all (although I managed to change the relative path without a problem but checking out other posts here)
Any help appreciated.
If I don't answer for a while it's because my Mrs is due to give birth imminently. I will get back here when I can
Last edited: