A very basic question, but I am new to this...
I have the following code to get the path of an image from my form, and it works fine.
I just need to get the resulting string into the correct field on my form.
The field I want to put it in is [Photo].
The code is called from a button on my form.
I have the following code to get the path of an image from my form, and it works fine.
I just need to get the resulting string into the correct field on my form.
The field I want to put it in is [Photo].
Code:
Sub openfile2()
Dim strFilter As String
Dim strInputFileName As String
strFilter = ahtAddFilterItem(strFilter, "Image Files (*.BMP)", "*.BMP")
strInputFileName = ahtCommonFileOpenSave( _
Filter:=strFilter, OpenFile:=True, _
DialogTitle:="Please select an image file...", _
Flags:=ahtOFN_HIDEREADONLY)
' [Photo] = strInputFileName ???
End Sub
The code is called from a button on my form.