G
Guest
When I tried to retrieve the data from SQL Server database and assign it to a field, it generates an error since the data in SQL Server is "NULL" how am i able to solve that problem?
thanks,
Ed
Source=datasourcename;Database=databasename;User ID=;Password=;")
Conn.open()
myadapter=new OleDbDataAdapter("Select lastname from testtable where ssn=123121234;",conn)
myadapter.Fill(mydataset,"test")
txtlastname.text=mydataset.tables("test").rows(0).Item("lastname") ' Error Occurs here since LastName in SQL Server is NULL
thanks,
Ed
Source=datasourcename;Database=databasename;User ID=;Password=;")
Conn.open()
myadapter=new OleDbDataAdapter("Select lastname from testtable where ssn=123121234;",conn)
myadapter.Fill(mydataset,"test")
txtlastname.text=mydataset.tables("test").rows(0).Item("lastname") ' Error Occurs here since LastName in SQL Server is NULL