I am having problem specifying App.path in VB using Access, here is the line:
DoCmd.TransferDatabase acExport, "Microsoft Access", Path & "MarbleExport.mdb", acTable, "Estimate-Address", "Estimate-Address", False
DoCmd.TransferDatabase acExport, "Microsoft Access", Path & "MarbleExport.mdb", acTable, "Estimate-Order", "Estimate-Order", False
DoCmd.TransferDatabase acExport, "Microsoft Access", Path & "MarbleExport.mdb", acTable, "Estimate-Description", "Estimate-Description", False
I am using Path now because when I tried App.Path it doesn't work and Path right now doesn't work. Does anyone else have any suggestions in telling the thing to find the file MarblExport.mdb where it is located without hard coding it? If I hard code it, it means when I move the file some place else I have to change it everytime and that is really not good at all. Any help would be greatly appreciate it, thanks in advance.
DoCmd.TransferDatabase acExport, "Microsoft Access", Path & "MarbleExport.mdb", acTable, "Estimate-Address", "Estimate-Address", False
DoCmd.TransferDatabase acExport, "Microsoft Access", Path & "MarbleExport.mdb", acTable, "Estimate-Order", "Estimate-Order", False
DoCmd.TransferDatabase acExport, "Microsoft Access", Path & "MarbleExport.mdb", acTable, "Estimate-Description", "Estimate-Description", False
I am using Path now because when I tried App.Path it doesn't work and Path right now doesn't work. Does anyone else have any suggestions in telling the thing to find the file MarblExport.mdb where it is located without hard coding it? If I hard code it, it means when I move the file some place else I have to change it everytime and that is really not good at all. Any help would be greatly appreciate it, thanks in advance.