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 / March 2008

Tip: Looking for answers? Try searching our database.

REtrieving data from SQL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jar92380 - 12 Mar 2008 14:12 GMT
Hello

I would like to know what steps I would take to be able to input a number,
have it check against a sql db and then bring back some static numbers which
are in the database.

What I have so far is, I have created the data source and I know it works
cause if I use the list box all of the number show up.  However if I use a
text box and a submit button which does the following

Rules:

JobNumber = WBS1 (database table which stores all the numbers)

Actions:

Query using a data connection : database
set a field's value: HotelCost = @custReimbHotelRate
set a field's value: RentalCar = @custReimbcarRate
set a field's value: Airfare = @custReimbAirRate

and thats it.  Any ideas?
Clay Fox - 12 Mar 2008 16:58 GMT
So the problem is you are getting the values from the first record not the
one selected?

A filter is what you need to say set the values but where jobnumber = WBS1.

That way you get the data for the correct record.

I work with databases and InfoPath every day.
If you want to email me I could show you some examples.

Signature

Clay Fox / Microsoft InfoPath MVP
www.InfoPathDev.com / The InfoPath Authority / Downloads, Samples, How-To,
Experts, Forum

> Hello
>
[quoted text clipped - 18 lines]
>
> and thats it.  Any ideas?
AugieT - 26 Mar 2008 17:54 GMT
It would be really helpful to see some code here in the blog - this standard
answer of e-mail me doesn't help the rest of us out in cyberspace.
Signature


> So the problem is you are getting the values from the first record not the
> one selected?
[quoted text clipped - 28 lines]
> >
> > and thats it.  Any ideas?
Clay Fox - 26 Mar 2008 18:21 GMT
Sorry I usually add the link for my email.
http://www.infopathdev.com/members/clayfox.aspx

How are you planning to connect to the database?
Signature

Clay Fox / Microsoft InfoPath MVP
www.InfoPathDev.com / The InfoPath Authority / Downloads, Samples, How-To,
Experts, Forum

> It would be really helpful to see some code here in the blog - this standard
> answer of e-mail me doesn't help the rest of us out in cyberspace.
[quoted text clipped - 31 lines]
> > >
> > > and thats it.  Any ideas?

Rate this thread:






 
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.