![]() |
| |||||||
| Sponsored Links |
![]() | « Previous Thread | Next Thread » |
| | LinkBack | Thread Tools | Display Modes |
|
#1
| |||
| |||
| Hi, I have this query Code: strgetrecords = "SELECT Registration.First_Name, Registration.Last_Name, Points.*, Registration.Perf_Reg_Id From Points, Registration where Points.Athlete_Id = Registration.Id AND Points.Athlete_Id = " & getid & " order by convert(datetime, Points.Test_Date) desc" [Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine does not recognize 'Points.*' as a valid field name or expression. can someone tell me how to include all the field names in access todd |
| Sponsored Links |
|
#2
| ||||
| ||||
| Hmm...could try [Points].[*]. But if that doesn't work, then I think the error message speaks for itself and you'll need to list every column name from Points in the SELECT. (BTW, I HATE the SELECT * syntax anyway -- only pull the column names you need from the table and it will make understanding the query easier when you revisit the dang thing in 3 months).
__________________ Wolffy ------------------------ Opinions expressed are my own and do not necessity reflect those of any sane person. Any code provided is intended to be an example and is provided AS IS. Rework for your specific environment may be required. Void where prohibited by law. Not valid in California. Your mileage may vary. |
|
#3
| ||||
| ||||
| where are you using this sql? |
|
#4
| |||
| |||
| I am using access database |
|
#5
| ||||
| ||||
| ok, but are you running this query from a query, form, report? |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MS access distinct datetime problem | todd2006 | ASP Development | 16 | July 24th, 2008 01:05 PM |