Hi
I am trying to get data from my database using a string value, but keep getting an error message "Value of type string cannot be converted to system.data.dat aset"
The code is:
strRetailTenant Type = Replace(dstReta ilTenantType.Ta bles(0).Rows(0) .Item(0), " ", "")
dstRentalIndex = ("Select " & strRetailTenant Type.Trim & " from tbl_RentalEscIn dex where projID = " & Me.lblProjIDent .Text.Trim & " and IndexYear = " & intRentalIndex & " ")
any help would be much appreciated.
thanks in advance
I am trying to get data from my database using a string value, but keep getting an error message "Value of type string cannot be converted to system.data.dat aset"
The code is:
strRetailTenant Type = Replace(dstReta ilTenantType.Ta bles(0).Rows(0) .Item(0), " ", "")
dstRentalIndex = ("Select " & strRetailTenant Type.Trim & " from tbl_RentalEscIn dex where projID = " & Me.lblProjIDent .Text.Trim & " and IndexYear = " & intRentalIndex & " ")
any help would be much appreciated.
thanks in advance
Comment