D
DS
Having a problem with SQL statement,I think its with the [FName]& "
" &[LName] Section....
Any Help Appreciated
Thanks
DS
With Me.ListToGo
.RowSource = "SELECT PCenter.TableID,[FName]& " " &[LName] AS
Expr, Sales.SalesID, PCenter.TableName, Sales.Cancelled,
Sales.SalesServer, Sales.Paid " & _
"FROM PCenter INNER JOIN (Customers INNER JOIN Sales ON
Customers.CustomerID = Sales.CustomerNum) ON PCenter.TableID =
Sales.TableNumber " & _
"GROUP BY PCenter.TableID, [FName] & " " & [LName], Sales.SalesID,
PCenter.TableName, Sales.Cancelled, Sales.SalesServer, Sales.Paid " & _
"HAVING (((PCenter.TableName) Like 'Delivery') AND
((Sales.Cancelled)=0) AND
((Sales.SalesServer)=[Forms]![PCenter]![Server]) AND ((Sales.Paid)=0));
End With
" &[LName] Section....
Any Help Appreciated
Thanks
DS
With Me.ListToGo
.RowSource = "SELECT PCenter.TableID,[FName]& " " &[LName] AS
Expr, Sales.SalesID, PCenter.TableName, Sales.Cancelled,
Sales.SalesServer, Sales.Paid " & _
"FROM PCenter INNER JOIN (Customers INNER JOIN Sales ON
Customers.CustomerID = Sales.CustomerNum) ON PCenter.TableID =
Sales.TableNumber " & _
"GROUP BY PCenter.TableID, [FName] & " " & [LName], Sales.SalesID,
PCenter.TableName, Sales.Cancelled, Sales.SalesServer, Sales.Paid " & _
"HAVING (((PCenter.TableName) Like 'Delivery') AND
((Sales.Cancelled)=0) AND
((Sales.SalesServer)=[Forms]![PCenter]![Server]) AND ((Sales.Paid)=0));
End With