jaldred1
02-01-2008, 08:46 PM
Ok, this is a newbie question . . . I need to make a query that will prompts for a name then change a check box for that record.
What I have is:
UPDATE tblCustomer
SET tblCustomer.CreditHold = "no"
WHERE (((tblCustomer.CustomerName)="“*”" & [Enter customer name or leave blank for all] & "“*”"))
;
And when I take out "*"& and & "*" it works if I put in a customer name it works fine. But not if I don't enter a name. The table and field names are correct, but I don't know what I am doing wrong.
I am using 2008 but created it as 2003 since that is what we have use at school.
Does anyone have any suggestions?
What I have is:
UPDATE tblCustomer
SET tblCustomer.CreditHold = "no"
WHERE (((tblCustomer.CustomerName)="“*”" & [Enter customer name or leave blank for all] & "“*”"))
;
And when I take out "*"& and & "*" it works if I put in a customer name it works fine. But not if I don't enter a name. The table and field names are correct, but I don't know what I am doing wrong.
I am using 2008 but created it as 2003 since that is what we have use at school.
Does anyone have any suggestions?