Hello,
I have an appA.accdb and an appB.mda.
Need:
Could you help me solve this question or give me ideas, thank you.
Rafael .:McPegasus:.
msAccess.es
Valencia | España
I have an appA.accdb and an appB.mda.
Need:
- Open from appA a formHello that is in appB.
- I CANNOT use the VBE schema/Tools/References.
- DO NOT open a second instance of Access.
- It must be embedded within appA. (The effect is as if it were referenced).
Code:
Sub mcOpen_mod03()
'Este modelo abre una nueva instancia pero se cierra conforme finaliza el procedimiento.
'This model opens a new instance but closes as the procedure ends.
Dim appAccessWork As New Access.Application
Set appAccessWork = GetObject(cstrPathNamemda, "Access.Application")
Call appAccessWork.DoCmd.OpenForm("frmHola", acNormal, , , , acWindowNormal)
End Sub
Sub mcOpen_mod04()
'Este modelo abre una nueva instancia de Access pero NO la hace visible, crea un .laccdb. Podría ser un modo candidato pero no consigo mostrar el form.
'This model opens a new Access instance but does NOT make it visible, it creates a .laccdb. It could be a candidate mode but I can't show the form.
Dim appAccessWork As Access.Application
Set appAccessWork = New Access.Application
appAccessWork.OpenCurrentDatabase (cstrPathNamemda)
Call appAccessWork.DoCmd.OpenForm("frmHola", acNormal, , , , acWindowNormal)
End Sub
Could you help me solve this question or give me ideas, thank you.
Rafael .:McPegasus:.
msAccess.es
Valencia | España