Click here to Skip to main content
15,900,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
My Database is not closing after creating field. Please advise
VB
Set mydb = DBEngine.Workspaces(0).OpenDatabase("\172.22.30.41 \Training-Data\Training\Gaus\Vertical Updates\Database21.mdb") 
tb = mydb.TableDefs("Sheet1")
 ;enter code here
Set fd = tb.CreateField(Me.Date1.Text, dbLongBinary, 1000) 
tb.Fields.Append fd 
mydb.Close 
Set mydb = Nothing 
MsgBox " Date Created" 
Exit Sub
Posted
Updated 7-May-15 23:24pm
v4

1 solution

First: the path should begin with a double back slash \\172.22.30.41... for network addresses.
Second: opening an Access mdb file from a network will have significant communication overhead since it was design to be a local only format and therefore you will have to wait until it is done.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900