By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,849 Members | 2,339 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,849 IT Pros & Developers. It's quick & easy.

Dialog Box Problem

P: n/a
Me again

Here is a problem that i fell into while using my new Dialog box
My code says the following for Form1

Private Sub Form_Load()

'Have a default Logo placed in logo _
field when logo field is Null

Dim strPath As String
Dim strDocName As String, strlinkCriteria As String
Dim strMsg As String, strTitle As String
Dim intStyle As Integer

If IsNull([logotest]) Then
[logotest] = "C:\EasySampledatabase\BlankLogo.jpg"
strMsg = "Do you want to add your logo?" & Chr(13) & Chr(10) & "
then go to the Get Your Logo form"
intStyle = vbOKOnly
MsgBox strMsg, intStyle

End If

Exit Sub

End Sub

Private Sub cmdOpen_Click()

Me![logotest] = GetOpenFile

End Sub

The above code works,, The "Get Your Logo (Form2)" form is where you
click for the Dialog box.. [LogoTest] has the default
"C:\EasySampledatabase\BlankLogo.jpg" If the user opens the dialog
box and decides not to insert a file then the
"C:\EasySampledatabase\BlankLogo.jpg" is deleted, regardless of what i
do the above code (Form1) will not respond.

If i physically delete"C:\EasySampledatabase\BlankLogo.jpg" without
opening the Dialog box the above code works fine.

Any Ideas???
Nov 12 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.