asp.net help please...

asp.net Oshawa, Canada
  • 13 years ago

    please... whats wrong with my syntax....

     

    sub Page_Load(sender as Object, e as EventArgs) Dim AutoValue dim Dscon as OleDbConnection dim SQL as string dim DBCon1 as OleDbCommand Dscon = Server.CreateObject("ADODB.Connection") Dscon.Open ("DSN=405d") SQL = "Select Max(cnum) as cnum From clientreg; " Set DBCon1 = Dscon.Execute(SQL) if not Isnull (DBCon1("cnum"))then AutoValue = DBCon1("cnum") + 1 else Autovalue = "1001" end if end sub

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Debugging is anticipated with distaste, performed with reluctance, and bragged about forever.” - Dan Kaminsky