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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

select statement not working with joined dbf files

Status
Not open for further replies.

charlotte49er

Programmer
Nov 17, 2001
25
US
I want to grab all of the fields from two dbf files. However, the following statement hangs up:

strSQL = "SELECT * FROM usgs_gages.dbf INNER JOIN usgsdata.dbf ON usgs_gages.SITE_ID=usgsdata.SITE_ID"

If I replace the * with the individual field names it works but I was hoping to not have to do that. Can anyone shed some light? Thanks in advance.
 
SELECT usgs_gages.* FROM usgs_gages.dbf INNER JOIN usgsdata.dbf ON usgs_gages.SITE_ID=usgsdata.SITE_ID


Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top