Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / April 2006

Tip: Looking for answers? Try searching our database.

days between dates and sql server data base

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paulo Pina - 18 Apr 2006 11:08 GMT
Hi,

I have implemented the VBScript
(http://enterprise-solutions.swits.net/infopath/datediff-vbscript-infopath.htm)
in a New Blank Form, and it's works. But when I use a New Form with a SQL
Server Data Base connection, the difference between dates not works, I don't
have any results.

Someone can help?

Thanks in advance,

Paulo Pina
Adam Harding - 18 Apr 2006 15:58 GMT
Hi

In tools, form options, open and save, untick save and save as, then have a
button on your form to save the form, which only saves it to the UNC path you
give it.  This will have to be done through code.  Fairly simple but look
through this board to find out how.

Cheers Adam

> Hi,
>
[quoted text clipped - 9 lines]
>
> Paulo Pina
Adam Harding - 18 Apr 2006 16:08 GMT
I think it depends on the formatting of the date in SQL, perhaps you have to
specify the fields to be in XML on the form and text in the database not date
or time.  Furthermore, you may need a different SQL function to compare the
values if it pulls back the reuslt of a query.

I hope this helps

Adam

> Hi,
>
[quoted text clipped - 9 lines]
>
> Paulo Pina
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.