I have created the following code in access 2003. i am trying to create a sql connection and export the data to a XML file and I don't know how to do it.
I have got the connection code for SQL database, but what is the next step a read() method? If anyone can point me in the right direction, thanks.
Private Sub Command0_Click()
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\Documents and Settings\chicks\My Documents\EDIS\Databases\Mercy EDIS\db1.mdb;"
oConn1.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\Documents and Settings\chicks\My Documents\EDIS\Databases\Mercy EDIS\db1.mdb;" & _
"Jet OLEDB:System Database=MySystem.mdw", _
"sa", "!sa789"
'Set Connection = MercyData.OpenConnection (
' Export the contents of the Customers table. The Orders and Order
' Details tables will be included in the XML file.
Application.ExportXML ObjectType:=acExportTable, DataSource:="F_Pat_Present", _
DataTarget:="Mercy.xml"
End Sub
I have got the connection code for SQL database, but what is the next step a read() method? If anyone can point me in the right direction, thanks.
Private Sub Command0_Click()
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\Documents and Settings\chicks\My Documents\EDIS\Databases\Mercy EDIS\db1.mdb;"
oConn1.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\Documents and Settings\chicks\My Documents\EDIS\Databases\Mercy EDIS\db1.mdb;" & _
"Jet OLEDB:System Database=MySystem.mdw", _
"sa", "!sa789"
'Set Connection = MercyData.OpenConnection (
' Export the contents of the Customers table. The Orders and Order
' Details tables will be included in the XML file.
Application.ExportXML ObjectType:=acExportTable, DataSource:="F_Pat_Present", _
DataTarget:="Mercy.xml"
End Sub