vba and curdir , chdir and mkdir (1 Viewer)

abubasil

Registered User.
Local time
Today, 11:27
Joined
Aug 31, 2011
Messages
29
HI all, Please help me with this , I gave up I've made this block of code but still something wrong.
 

Attachments

  • mkdir-if-not-exist.mdb
    116 KB · Views: 104

bob fitz

AWF VIP
Local time
Today, 09:27
Joined
May 23, 2011
Messages
4,727
I think the problem is with the form. If you create a new form and copy the code to the new form, it seems to work. Perhaps your form is corrupt.
 

boblarson

Smeghead
Local time
Today, 01:27
Joined
Jan 12, 2001
Messages
32,059
So what is the purpose of using ChDir?
 

abubasil

Registered User.
Local time
Today, 11:27
Joined
Aug 31, 2011
Messages
29
thank you for caring the code do half the job , it creates the dir if it not exist, and makes it the current directory to the project and gives the user an alarm about creating the new dir , if the user moves the project the to new dir the code should not give the alarm again and should not quite , think about the scenario again , do what needed as user , move the project and see what makes the work halt thank you again
 

abubasil

Registered User.
Local time
Today, 11:27
Joined
Aug 31, 2011
Messages
29
Now it works , Please check and let me know
 

Attachments

  • mkdr-final.mdb
    300 KB · Views: 114
Last edited:

Users who are viewing this thread

Top Bottom