Jayden Bell Total Post:110 Points:774 Posted by Jayden Bell June-11-2013 7:02 AM VB.Net VB.Net 1 Reply(s) 1266 View(s) Ratings: Rate this: Hi Expert, How to set a variable, typeofauction, as either 'a' or 'f' with an if then statement. dim typeofauction as char. I'm trying as following typeofauction = typeofauction1.Text If (typeofauction = "Auction") Then listingtype = 'a' End If If (typeofauction = "Fixed Price") Then listingtype = 'f' End If What wrong with above line of code. Please help. Thanks in advance.