I created a form that has a datasource to a SQL Server 2000 database. When i
enter the informatin on the form and hit submit the form tells me that it
sucessfully updated the database.
If i query the table in the database there is a record that has all empty
fields except for the time stamp. When i enter information in the form again
and hit submit i get an error telling me that it cannot create a duplicate
record.
What am i doing wrong? Why is the form inserting an empty record in the
database table?
You need to make sure you are using you query fields to pull rows and the
data fields for the data you wish to submit.
The data should be visible in your form.
I would statr with the basic new form and follow its instructions
Drag the Query Fields in as a section
Drag the Data fields in to the view as a repeating table
Preview and do some queries and test it.
Add a new row to the repeating table and submit and see the data go in.

Signature
Clay Fox / Microsoft InfoPath MVP
www.InfoPathDev.com / The InfoPath Authority / Downloads, Samples, How-To,
Experts, Forum
> I created a form that has a datasource to a SQL Server 2000 database. When i
> enter the informatin on the form and hit submit the form tells me that it
[quoted text clipped - 7 lines]
> What am i doing wrong? Why is the form inserting an empty record in the
> database table?
Jrangel - 25 Apr 2008 00:18 GMT
I did as you suggested and SUCCESS!!!

Signature
Thanks,
JRangel
> You need to make sure you are using you query fields to pull rows and the
> data fields for the data you wish to submit.
[quoted text clipped - 17 lines]
> > What am i doing wrong? Why is the form inserting an empty record in the
> > database table?
BobCh - 29 Apr 2008 18:04 GMT
Looking forward, you may want to consider moving to SQL 2005, as it
supports the XML data type for columns, and opens up a world of
options for reporting on form data.
/bac
> I did as you suggested and SUCCESS!!!
> --
[quoted text clipped - 31 lines]
>
> > > JRangel