That seems pretty complicated. Here's a real simple one I use:
SELECT Username FROM Table WHERE Username = '#Form.Username#'
Ooops, the username has already been selected by another user. Please enter a new username
*Update*
Now I've run into another problem. I changed the Code from above (dark red) by adding a . Now my problem (dark orange) is at the next of my INSERT queryand I get this error message "Error Executing Database Query". I'm still new to ColdFusion and the debugging so any ideas would be great.
code;
INSERT INTO tblWalyerMembers (UserID, Password, Email)
VALUES (
*Your must enter a User Name.*
SELECT UserID
FROM tblWalyerMembers
WHERE UserID = '%#FORM.UserID#%'
*Your User Name is already taken by another User.*
'#FORM.userID#'
,
'#FORM.password#'
NULL
,
'#FORM.email#'
NULL
)
Thank you to anyone that can help me,
Walyer