Chat LIVE With Programming Experts! There Are 23 Online Right Now...

Welcome to Dream.In.Code
Become a VB Expert!

Join 244,257 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,297 people online right now. Registration is fast and FREE... Join Now!




Passing Parameters using a Data Environment

 
Reply to this topicStart new topic

Passing Parameters using a Data Environment

bjones
10 Sep, 2008 - 12:43 PM
Post #1

New D.I.C Head
*

Joined: 10 Sep, 2008
Posts: 1

Hi I'm working on an applicaiton for work (but I'm a sales guy smile.gif ) and I'm stuck on the Data Environment when it comes to passing paramenters at runtime. I've purchased a few books on VB6 but most of then brush over DE at best. I have setup my connection, commands and built a few forms using the DE but I'm confused when setting up SQL statements within the DE that need parameter passed, say through a text box.
Ideally I would like a user to enter in a year through a textbox, then click a command button that in turn refreshs a datagrid filtered by year...but first things first - what is the proper way to setup a SQL driven Command? Do I simply enter SELECT * FROM tblquotafile WHERE year = ? - then what method to I use to push a variable in "?" at runtime?

Any help here is much appreciated - if anyone knows a good book that covers DE in more detail it is appreciated

Regards, Brock


User is offlineProfile CardPM
+Quote Post


thava
RE: Passing Parameters Using A Data Environment
10 Sep, 2008 - 05:35 PM
Post #2

D.I.C Addict
Group Icon

Joined: 17 Apr, 2007
Posts: 670



Thanked: 35 times
Dream Kudos: 75
My Contributions
i think the following link will help you

http://www.dreamincode.net/code/snippet2492.htm
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 7/4/09 11:05AM

Live VB Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month