|
-
Jan 9th, 2000, 02:46 AM
#1
Thread Starter
Addicted Member
What did I do wrong??
An Error comes up and says
"Object Variable or Block with variable not set".
It comes up with I try to open my DB,
It highlights this code:
Data1.Recordset.AddNew
-
Jan 9th, 2000, 04:00 AM
#2
Hyperactive Member
Hi, there.
You can get this error if you did not set RecordSource property of Data control.
Larisa
-
Jan 9th, 2000, 04:26 AM
#3
Thread Starter
Addicted Member
Grr..
OK, I wrote:
Data1.RecordSource = Data1
Data1.Recordset.AddNew
Sorry, I really am new to
DataBases.. Wanna Help??
(
-
Jan 9th, 2000, 04:54 AM
#4
Hyperactive Member
Dayo312!
RecordSource property of data control you can set at design time. It's the name of your table or sql string. When you set DatabaseName property of Data control(at design time) and go to RecordSource property(click on it) it'll automaticly show you all tables for this database. Or you can write your sql statement here.
Larisa
-
Jan 9th, 2000, 05:46 AM
#5
Thread Starter
Addicted Member
Thankyou so much!
Ill look up to you forever. lol.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|