If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Can you import objects via code?
I am trying to create a form in MS Access that works similar to Windows
Update (i.e. will check the version of a local form / report and, if different, will delete it from the local database and then import from a master). I can get the form to delete using 'DeleteObject' but cannot find the equivalent command for import ... any suggestions? |
#2
|
|||
|
|||
Can you import objects via code?
You could try the DoCmd.CopyObject [destinationdatabase][, newname][,
sourceobjecttype][, sourceobjectname] method. Hope this helps. "DRT" wrote: I am trying to create a form in MS Access that works similar to Windows Update (i.e. will check the version of a local form / report and, if different, will delete it from the local database and then import from a master). I can get the form to delete using 'DeleteObject' but cannot find the equivalent command for import ... any suggestions? |
#3
|
|||
|
|||
Can you import objects via code?
Actually the DoCmd.TransferDatabase [transfertype], databasetype,
databasename[, objecttype], source, destination[, structureonly][, saveloginid] may be of more help as it allows you to import from a database. Hope this helps. "DRT" wrote: I am trying to create a form in MS Access that works similar to Windows Update (i.e. will check the version of a local form / report and, if different, will delete it from the local database and then import from a master). I can get the form to delete using 'DeleteObject' but cannot find the equivalent command for import ... any suggestions? |
#4
|
|||
|
|||
Can you import objects via code?
Another approach, rather than swapping objects in and out of an Access file,
is to swap the entire Access file out and replace it with an updated version. That way, any (and all) changes you've made (and tested) will be available... Good luck Regards Jeff Boyce Microsoft Office/Access MVP "DRT" wrote in message ... I am trying to create a form in MS Access that works similar to Windows Update (i.e. will check the version of a local form / report and, if different, will delete it from the local database and then import from a master). I can get the form to delete using 'DeleteObject' but cannot find the equivalent command for import ... any suggestions? |
#5
|
|||
|
|||
Can you import objects via code?
Thanks all for the response, should be able to get something working now
"Andrew Tapp" wrote: Actually the DoCmd.TransferDatabase [transfertype], databasetype, databasename[, objecttype], source, destination[, structureonly][, saveloginid] may be of more help as it allows you to import from a database. Hope this helps. "DRT" wrote: I am trying to create a form in MS Access that works similar to Windows Update (i.e. will check the version of a local form / report and, if different, will delete it from the local database and then import from a master). I can get the form to delete using 'DeleteObject' but cannot find the equivalent command for import ... any suggestions? |
Thread Tools | |
Display Modes | |
|
|