Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

joining 2 txt files

Status
Not open for further replies.

charlotte49er

Programmer
Nov 17, 2001
25
US
I'm trying to join 2 txt files using ado. I've seen a couple of obscure examples but I can't seem to get them to work. Can someone please provide some suggestions or correct my code below? Thanks in advance.

Code:
	oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
          "Data Source=" & strPathtoTextFile & ";" & _
          "Extended Properties=""text;HDR=YES;FMT=Delimited"""
	Dim strQuery
	strQuery = "SELECT rvf_elevation.NAME FROM ([rvf_newformat#txt]rvf_newformat,[rvf_elevation#txt]rvf_elevation WHERE rvf_newformat.SITECODE = rvf_elevation.SITECODE)"
	oRs.Open strQuery, oConn, adOpenStatic, adLockOptimistic, adCmdText
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top