Private Sub Form_Current()
Dim oDB_Folder As String: oDB_Folder = CurrentProject.Path
Dim oSavedPath As String: oSavedPath = [PhotoFile]
Dim oActualPath, F As String
F = Replace(oSavedPath, "DatabaseFolder", oDB_Folder)
Me.imgPhoto.Picture = F
End Sub
Private Sub btnSelectPhoto_Click()
Dim strFile As String
Dim PhotoFile As String
strFile = GetFileName(CurrentProject.Path)
If strFile > "" Then
PhotoFile = Filenm(strFile)
If Filepath(strFile) <> CurrentProject.Path & "\Media\ID Photos\" Then
FileCopy strFile, CurrentProject.Path & "\Media\ID Photos\" & PhotoFile
End If
imgPhoto.Picture = CurrentProject.Path & "\Media\ID Photos\" & PhotoFile
Me.PhotoFile = "DatabaseFolder" & "\Media\ID Photos\" & PhotoFile
Form_f_LicenseeDetailsEdit.PhotoFile = "DatabaseFolder" & "\Media\ID Photos\" & PhotoFile
Form_f_LicenseeDetailsEdit.Refresh
Form_f_LicenseeDetailsEdit.Repaint
End If
End Sub
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE