I created a form from an Access database connection. I can 'Run Query' and
get the expected results back on my Master/Detail form. However, when I add a
'Submit' button, go to 'Button Properties', select 'Submit' action and click
on the 'Submit To' drop down list, 'Database' does not appear in the list. I
only see Email, Web Service, SharePoint Form Library, Web Server and 2 custom
submit options. I'd really appreciate any help you can give.
Thanks.
An error I've had while attempting to submit is "One or more of the
columns in the data source has a long data type (text, ntext, hyperlink
or image). Long data types are not supported." Check that you're not
using any of these unsupported types.
Hope this helps :)
Chris
ClaireN - 13 Apr 2006 00:59 GMT
Thanks for the swift response Chris!
I just reduced all my memo fields to text(255) to see if that works. I
recreated a form from scratch as well but I still don't see 'database' in the
'Submit To' drop down list.
I think I'll try SQLServer to see if that helps since I will need long
datatypes anyway. Any other ideas?
Claire.
> An error I've had while attempting to submit is "One or more of the
> columns in the data source has a long data type (text, ntext, hyperlink
[quoted text clipped - 3 lines]
> Hope this helps :)
> Chris
Chris Mahoney - 13 Apr 2006 02:29 GMT
> I think I'll try SQLServer to see if that helps
I'm not sure that it does - I got the error I mentioned while using SQL
Server.
Are you attempting to submit back to your main database, or a secondary
source? I'm still quite new to InfoPath, but I think you can only
submit to the main DB.
ClaireN - 13 Apr 2006 01:05 GMT
I assumed in my last post that the long datatype issue was Access but
re-reading, I guess long datatypes are not supported by InfoPath - right? so
it will make no difference if I shift to SQLServer now.
> An error I've had while attempting to submit is "One or more of the
> columns in the data source has a long data type (text, ntext, hyperlink
[quoted text clipped - 3 lines]
> Hope this helps :)
> Chris
Adam Harding - 13 Apr 2006 16:33 GMT
ClairN and Chris Mahoney
The only way an infopath form can directly submit to a database is if the
form was built from scratch using the "new from data connection" where you
specify the database and that submitting is OK.
Indirectly you can submit via a web service on to the database but you need
ASP knowledge.
Create a new form from sratch and select "New from Data Connection" connect
to your database and then copy and paste the controls from your form over to
the new form, right-click on each one and change their binding to the fields
on the database. There you both have it any further questions mail me at
adam.harding@ltsbasset.co.uk
Cheers Adam
> I assumed in my last post that the long datatype issue was Access but
> re-reading, I guess long datatypes are not supported by InfoPath - right? so
[quoted text clipped - 7 lines]
> > Hope this helps :)
> > Chris
ClaireN - 13 Apr 2006 17:55 GMT
Thanks both
I found out what was wrong - Where Adam said 'specify the database and that
submitting is OK' - there wasn't an option to say submitting is ok, so I
tried recreating the form with just 1 table - worked like a charm. Recreating
the form from scratch and joining 1 more table each time, I found that it was
a particular join that was causing the problem.
Thank you so much both for your assistance - I really appreciate it.
Have a great day,
Claire.
> ClairN and Chris Mahoney
>
[quoted text clipped - 24 lines]
> > > Hope this helps :)
> > > Chris
warren- washington, dc - 24 Apr 2006 16:20 GMT
Hi Claire-
You were able to finally use tables with long data types? I tried what you
suggested below with no success. As soon as I got to the table that
contained ntext (in SQL Server) or Memo (in Access), it would not allow
submitting.
Looking at the SQL Statement, I didn't find anything unusual with the joins.
Any suggestions is greatly appreciated!
> Thanks both
>
[quoted text clipped - 37 lines]
> > > > Hope this helps :)
> > > > Chris
ClaireN - 24 Apr 2006 17:17 GMT
Hi Warren
No, I didn't. I changed my datatypes to text(255) just to get over this
submit to database issue. If I cannot get away with 255 char limits I won't
be using InfoPath. I wonder if Office12 sorts this out?
Good Luck.
> Hi Claire-
>
[quoted text clipped - 47 lines]
> > > > > Hope this helps :)
> > > > > Chris
warren- washington, dc - 24 Apr 2006 18:29 GMT
Thanks for the quick response; you probably saved my head from a lot of
brick-pounding. I've already committed to using Sharepoint (my fault!), so
I'm going to have to do some sort of creative workaround.
FYI, I looked at the one memo field that's causing all this trouble, and
checked the length of text in it. Of the 62 records in the table:
36 - at or below 255 characters
12 - >256 and <=500
6 - >501 and <=1000
8 - >1000 (closer to 2,000 characters. Someone's got too much time).
But the point is people do use the memo field to write over 255 characters,
about 40% in my case. The inability to write this type of field can't be
ignored.
> Hi Warren
>
[quoted text clipped - 55 lines]
> > > > > > Hope this helps :)
> > > > > > Chris