Go Back   DeveloperBarn Forums > Databases > Microsoft Access

Sponsored Links

Discuss "access problem" in the Microsoft Access forum.

Microsoft Access - Microsoft Access is a database for small to medium applications. Learn tips and tricks and best database practices here.


Reply « Previous Thread | Next Thread »  
 
LinkBack Thread Tools Display Modes
  #1  
Old July 29th, 2008, 09:43 PM
Barn Frequenter

 
Join Date: Mar 2008
Posts: 197
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1
todd2006 is an unknown quantity at this point
Default access problem

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"
It gives me an error saying
[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
Reply With Quote
Sponsored Links
  #2  
Old July 30th, 2008, 09:34 AM
Wolffy's Avatar
Slaprentice of Wolves

 
Join Date: Mar 2008
Location: Peoria, IL
Posts: 175
Thanks: 3
Thanked 24 Times in 21 Posts
Rep Power: 1
Wolffy is on a distinguished road

Awards Showcase
Microsoft .Net 
Total Awards: 1

Default

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.
Reply With Quote
  #3  
Old July 30th, 2008, 09:54 AM
sbenj69's Avatar
Moderator

 
Join Date: Mar 2008
Posts: 84
Thanks: 20
Thanked 24 Times in 19 Posts
Rep Power: 1
sbenj69 is on a distinguished road

Awards Showcase
Microsoft Windows Microsoft Access 
Total Awards: 2

Default

where are you using this sql?
Reply With Quote
  #4  
Old July 30th, 2008, 10:17 AM
Barn Frequenter

 
Join Date: Mar 2008
Posts: 197
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1
todd2006 is an unknown quantity at this point
Default

I am using access database
Reply With Quote
  #5  
Old July 30th, 2008, 11:38 AM
sbenj69's Avatar
Moderator

 
Join Date: Mar 2008
Posts: 84
Thanks: 20
Thanked 24 Times in 19 Posts
Rep Power: 1
sbenj69 is on a distinguished road

Awards Showcase
Microsoft Windows Microsoft Access 
Total Awards: 2

Default

ok, but are you running this query from a query, form, report?
Reply With Quote
Reply

  DeveloperBarn Forums > Databases > Microsoft Access

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MS access distinct datetime problem todd2006 ASP Development 16 July 24th, 2008 01:05 PM


All times are GMT -4. The time now is 12:59 PM.



Content Relevant URLs by vBSEO 3.2.0