Hi Bobbyr,
Many Thanks for your response..It does not give me the "from.UserName" error but now i seem to get a different error message.
Basically i've put Vaidation into the the first name i.e. if Username and password is true then display "passwordreminderquestion" else error,however, if i enter a valid username and password and get the correct question - to which I reply, it tells me that no such user exists yet the validation is the same as before i.e. extract the unique user I entered.
Im attaching the code for the three pages, its long so I hop you dont mind (You did say to attach code

)
ForgottenPassword.cfm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Forgotten Password</TITLE>
</HEAD>
<BODY>
<CFFORM ACTION="getPasswordReminderquestion.cfm" METHOD="POST">
For us to be able to locate your password, simply supply your username and email address in the boxes below:<BR><BR>
Please enter your user name:
<CFINPUT TYPE="Text" NAME="UserName" REQUIRED="YES" MESSAGE="Please Enter a UserName"><BR>
Please enter your Last Name:
<CFINPUT TYPE="Text" NAME="SurName" REQUIRED="YES" MESSAGE="Please Enter your Last Name"><BR>
<INPUT TYPE="submit" VALUE="process">
<INPUT TYPE="reset" VALUE="Clear"><BR>
</CFFORM>
</BODY>
</HTML>
GetpasswordReminderquestion.cfm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- This is the origina password reminder where I attempted to rtrieve the users password reminder question and submit
The answer to another form. Instead I opted to just the question which the user should be able to answer at the login screen-->
<CFQUERY DATASOURCE= "ONLINE" NAME="Retrieve_Question">
SELECT Username, Email, PasswordReminderQuestion,PasswordReminderAnswer, Surname
FROM Users
WHERE UserName = '#Form.UserName#' AND SurName= '#form.SurName#'
</CFQUERY>
<HTML>
<HEAD>
<TITLE>Retrieve Member login details</TITLE>
</HEAD>
<BODY>
<CFIF #Retrieve_Question.RecordCount# IS 0>
<CFOUTPUT>
Im Sorry, the name <B>#UserName#</B> and Last Name <B>#SurName#</B> that you entered does not match a valid user.<BR>
You need to either <A href="NewUser.cfm"> create an account </A> or
<A href="ForgottenPassword.cfm"> Try again</A> </CFOUTPUT>
<CFELSE>
<CFFORM ACTION = "GetPasswordReminderAnswer.cfm" METHOD ="POST">
<INPUT TYPE="hidden" NAME="UserName" VALUE="#FORM.UserName#">
<INPUT TYPE="hidden" NAME="SurName" VALUE="#FORM.SurName#">
<CFOUTPUT QUERY = "Retrieve_Question">
Your User Name is #UserName#<BR>
Your Last Name is #SurName#<BR>
Your Password Reminder Question is #PasswordReminderQuestion#<BR>
Please Enter your answer to the question:
<CFINPUT MESSAGE="You must enter your answer" REQUIRED = "Yes" TYPE="Text" NAME="PasswordReminderAnswer">
<INPUT TYPE="submit" VALUE="process">
<INPUT TYPE="reset" VALUE="Clear"><BR>
</CFOUTPUT>
</CFFORM>
</CFIF>
</BODY>
</HTML>
Getpasswordreminderanswer.cfm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<CFQUERY DATASOURCE= "ONLINE" NAME="Retrieve_Password">
SELECT UserName, Password, Email, PasswordReminderQuestion, PasswordReminderAnswer, Surname
FROM Users
WHERE UserName = '#FORM.UserName#' AND SurName= '#form.SurName#'
<!--- It doesnt get hidden form field from the previous page
WHERE UserName = '#Form.UserName#' --->
</CFQUERY>
<HTML>
<HEAD>
<TITLE>Retrieve Password</TITLE>
</HEAD>
<BODY>
<CFIF #Retrieve_Password.recordcount# is 0 >
<CFOUTPUT>
Im Sorry, the answer <B>#PasswordReminderAnswer#</B> to your question is invalid.<BR>
You need to either <A HREF="NewUser.cfm"> create an account </A> or
<A HREF="ForgottenPassword.cfm"> Try again</a>
</CFOUTPUT>
<CFELSE>
<CFOUTPUT QUERY = "Retrieve_Password">
You may now log in with the following details:<BR>
User Name : <B>#UserName#</B>
Password : <B>#Password#</B><BR><BR>
</CFOUTPUT>
</CFIF>
</BODY>
</HTML>
This is really starting to cheese me off coz just when I thought I understood SQL this happens. My understanding is that if I create a search where username =username and password=password then surely only one record is matched yet CF says it zero recordcounts???
Im really sorry, I know this is long.
Your help will be greatly appreciated
Many thanks and best regards
Sam
PS - The code is a bit raw and messy so please excuse