hey
im trying to show a customer details from 3 tables in access each time i press on the cust to show it in datareport and i get message syntax error query
this is the code i put
this is the table of the customers
this is the table of HairDressers
and this is the table of Appointments
tnx in advanced
im trying to show a customer details from 3 tables in access each time i press on the cust to show it in datareport and i get message syntax error query
this is the code i put
Code:
If Not FrmCusts.LsVw.SelectedItem Is Nothing Then
Set RptCust.DataSource = CN.Execute("SELECT AppID, AppDate, Apptime, AppCust, AppHrDr, AppSerivce, FullName from Appointments, Customers, HairDressers ,HairName " & _
"WHERE ID= AppID " & FrmCusts.LsVw.SelectedItem.Tag & "ORDER BY by AppDate")
RptCust.show 1
End Sub
Code:
Id,Fullname,address,datebirth,facebook,email,phone,cellular,haircoor,oxygen,photo
Code:
HairID,Hairname
Code:
AppID,appdate,apptime,appcust,apphrdrappservice