I have a error in this tutorial program that I am writing. It's the
tutorial to write Appforge Mobile VB application in Ultralite component
This is a visual basic 6 program that is connected to table customer and
has a GUI form that has couple of textboxes that interacts with columns
from this table. Table customer was created with ultralite schema
painter, and the vb code is exactly how the tutorial is written, with
the path changed according to my database path.
The program makes a new .udb file after the first run. However, when I
try to insert a value, it keeps giving me an error (at line that has
'*****). It says
'object doesnt support this property or method'.
Thank you very much.
Private Sub btnInsert_Click()
Dim fname As String
Dim lname As String
Dim city As String
Dim phone As String
fname = txtfname.Text
lname = txtlname.Text
city = txtcity.Text
phone = txtphone.Text
On Error GoTo InsertError
CustomerTable.Column("Fname").StringValue = fname '******'
CustomerTable.Column("Lname").StringValue = lname
If Len(city) > 0 Then
CustomerTable.Column("City").StringValue = _
If Len(phone) > 0 Then
CustomerTable.Column("Phone").StringValue = _
Posted via http://dbforums.com