View Complete Thread | FoxWeb Forum Home
Date:    Msg ID:   
From:    Thread:   
Oops, no question over the past month.
I used an option dropdown list to display "State" in a user table.


Select * from user where lower(UserID)=cUser;

into Cursor curUser




IF LOWER(Request.Form("UserForm")) = "user_edit"

    M.state = Request.Form('state')


    Select User
    UPDATE User;
      SET State = M.state,;
        WHERE Upper(UserID) = cUser





<select size="1" name="State" value="<%=cState%>">




I can update the State value of the User table based on the user selection on the screen. But when I pulled out the same record, the value returns to the first option of the selection list.
When displaying the old record, how can I let the selection list points to the value of the User table, not the first selection as a new record?
Thank you in advance.