Can I ask how to make a password confirm box.

for ex.

password: textarea
retype password: textarea2

just like that. The password must be the same with the first one and will prompt that it is incorrect ones clicked the registerd button. I think the thing that must be use is IF ELSE statement here.

Recommended Answers

All 3 Replies

that is so simple , you just need to compare both the string and proceed further based on the comparison result.

I think there is no problem to use if else statement.

if text1.text<>text2.text then
    msgbox "wrong entry"
end if

if you want caseinsensitve

if StrComp(text1.text,text2.text,vbTextCompare )<>0 then
    msgbox "wrong entry"
end if
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.