Error Submitting to SQL - InfoPath Dev
in

InfoPath Dev

Error Submitting to SQL

Last post 03-15-2007 10:38 AM by jthrasher. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-15-2007 01:39 AM

    Error Submitting to SQL

    I've created a very simple database and form to test the submit functionality. Database consists of 4 columns in a table: SID (primary key), UserName varchar(10) unique, FirstName varchar(10), LastName varchar(10). I'm trying to create a repeating table that allows me to enter the User Name, Last Name, and First Name. When I hit submit I recieve the following error:

    "The form contains the following errors:


    Field or group: SID
    Error: Only integers allowed"
  • 03-15-2007 02:23 AM In reply to

    Re: Error Submitting to SQL

    So I guess in your Database your SID field is set as type Int
    What you then have to do within your infopath form is:
    go to your repeating table, double click the textbox control where you enter your SID and change the Data Type from Text(String) to WholeNumber(Integer).

    Does it work ?
    Listen to Motörhead cos they play Rock'n Roll :)
  • 03-15-2007 10:38 AM In reply to

    Re: Error Submitting to SQL

    Ok, I think I've found the problem. I was assuming the SID value would just increment by one when new data was submitted, is there any way to do this? I basically want the database to automatically increment the SID by one so I don't have to submit it from the form.
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.