meenctg Learn24bd Local time Tomorrow, 05:05 Joined May 8, 2012 Messages 133 Jan 8, 2014 #1 I have a form here with a button i wanna when user will click on button another access file will open. or current file will close and another file will open. Is it possible with vb for access? please help me
I have a form here with a button i wanna when user will click on button another access file will open. or current file will close and another file will open. Is it possible with vb for access? please help me
pr2-eugin Super Moderator Local time Today, 22:05 Joined Nov 30, 2011 Messages 8,487 Jan 8, 2014 #2 Application.FollowHyperlink will do what you want. Or even Shell command.
N namliam The Mailman - AWF VIP Local time Today, 23:05 Joined Aug 11, 2003 Messages 11,685 Jan 8, 2014 #3 Something along the lines of: shell("MSACCESS.EXE ""D:\Yourfolder\YourDatabase.accdb"" ")
meenctg Learn24bd Local time Tomorrow, 05:05 Joined May 8, 2012 Messages 133 Jan 8, 2014 #4 namliam said: Something along the lines of: shell("MSACCESS.EXE ""D:\Yourfolder\YourDatabase.accdb"" ") Click to expand... I have a function for get the current db path,,, I wanna open another mdb file which is also in current directory it's name Backup.mdb
namliam said: Something along the lines of: shell("MSACCESS.EXE ""D:\Yourfolder\YourDatabase.accdb"" ") Click to expand... I have a function for get the current db path,,, I wanna open another mdb file which is also in current directory it's name Backup.mdb
pr2-eugin Super Moderator Local time Today, 22:05 Joined Nov 30, 2011 Messages 8,487 Jan 8, 2014 #5 meenctg said: I have a function for get the current db path,,, I wanna open another mdb file which is also in current directory it's name Backup.mdb Click to expand... So what seems to be the problem now?
meenctg said: I have a function for get the current db path,,, I wanna open another mdb file which is also in current directory it's name Backup.mdb Click to expand... So what seems to be the problem now?
meenctg Learn24bd Local time Tomorrow, 05:05 Joined May 8, 2012 Messages 133 Jan 8, 2014 #6 pr2-eugin said: So what seems to be the problem now? Click to expand... How to coding for open the backup.mdb file. My current db path function is GetDBPath()
pr2-eugin said: So what seems to be the problem now? Click to expand... How to coding for open the backup.mdb file. My current db path function is GetDBPath()
pr2-eugin Super Moderator Local time Today, 22:05 Joined Nov 30, 2011 Messages 8,487 Jan 8, 2014 #7 I thought I already gave you the link to Shell function.. Code: Shell("MSACCESS.EXE " & GetDBPath() & "[COLOR=Red][B]backup.mdb[/B][/COLOR]") Last edited: Jan 8, 2014
I thought I already gave you the link to Shell function.. Code: Shell("MSACCESS.EXE " & GetDBPath() & "[COLOR=Red][B]backup.mdb[/B][/COLOR]")
meenctg Learn24bd Local time Tomorrow, 05:05 Joined May 8, 2012 Messages 133 Jan 8, 2014 #8 pr2-eugin said: I thought I already gave you the link to Shell function.. Code: Shell("MSACCESS.EXE " & GetDBPath() & "") Click to expand... GetDBPath() just face the current db path like when i open my main database file in c:\ GetDBPath() just give the c:\ but i wanna open another mdb file name is backup.mdb in current directory of my main database file
pr2-eugin said: I thought I already gave you the link to Shell function.. Code: Shell("MSACCESS.EXE " & GetDBPath() & "") Click to expand... GetDBPath() just face the current db path like when i open my main database file in c:\ GetDBPath() just give the c:\ but i wanna open another mdb file name is backup.mdb in current directory of my main database file
pr2-eugin Super Moderator Local time Today, 22:05 Joined Nov 30, 2011 Messages 8,487 Jan 8, 2014 #9 Ah ! Sorry check the updated code in Post#7
J JHB Have been here a while Local time Today, 23:05 Joined Jun 17, 2012 Messages 7,732 Jan 8, 2014 #10 Try the, Application.CurrentProject.Path. Code: Shell("MSACCESS.EXE " & Application.CurrentProject.Path & "\BackUp.mdb")
Try the, Application.CurrentProject.Path. Code: Shell("MSACCESS.EXE " & Application.CurrentProject.Path & "\BackUp.mdb")
N namliam The Mailman - AWF VIP Local time Today, 23:05 Joined Aug 11, 2003 Messages 11,685 Jan 8, 2014 #11 dont forget to "" the filename, I believe that is still needed in case there are spaces in the filepath/name.
dont forget to "" the filename, I believe that is still needed in case there are spaces in the filepath/name.