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

Syntax error 1

Status
Not open for further replies.

samotek

Technical User
May 9, 2005
197
BG
Could you help me find out the error, saying Syntax error in query expression 'afid >SELECT Min(T.afid) FROM TblClients1 As T)'
as in the following function :

Public Function str()
Dim StrSQL As String
StrSQL = " DELETE * FROM TblClients1 WHERE afid > SELECT Min(T.afid) FROM
TblClients1 As T)"
CurrentDb.Execute StrSQL

End Function
 

StrSQL = "DELETE * FROM TblClients1 WHERE afid > (SELECT Min(T.afid) FROM TblClients1 As T)
 
Thank you so much for your helpful answer. I have solved my problem !!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top