Hi all,
Help will be much apreciated here.
How can I query two different access databases that has same table and fields.
This is how i access the one database but I want to be able to do it for both at the same time so that I have the rsult of available countries in both databases.
database1.mdb
database2.mdb
Set con = Server.CreateOb ject("ADODB.Con nection")
con.Open "PROVIDER=MICRO SOFT.JET.OLEDB. 4.0;DATA SOURCE=c:\inetp ub\wwwroot\data base1.mdb"
sql_check = "select Country, count(*) as CountryCount from Property"
sql_check = sql_check & " GROUP BY Country"
Set rs = con.Execute(sql _check)
Now I can loop through the record set and show each Country name for this Database but I would like this loop to include both database answers
Any help will be much apreciated.
Hugo
Help will be much apreciated here.
How can I query two different access databases that has same table and fields.
This is how i access the one database but I want to be able to do it for both at the same time so that I have the rsult of available countries in both databases.
database1.mdb
database2.mdb
Set con = Server.CreateOb ject("ADODB.Con nection")
con.Open "PROVIDER=MICRO SOFT.JET.OLEDB. 4.0;DATA SOURCE=c:\inetp ub\wwwroot\data base1.mdb"
sql_check = "select Country, count(*) as CountryCount from Property"
sql_check = sql_check & " GROUP BY Country"
Set rs = con.Execute(sql _check)
Now I can loop through the record set and show each Country name for this Database but I would like this loop to include both database answers
Any help will be much apreciated.
Hugo
Comment