Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting

Post new topic   Reply to topic
dataenvironment problem
View previous topic :: View next topic  
Author Message
xtine_m
Newbie


Joined: 24 Jul 2005
Posts: 7

PostPosted: Dec 19th, 2005 10:51 AM    Post subject: dataenvironment problem Reply with quote

Hi! I am a VB newbie please help!!!

I am making a database. I ask for help months ago and someone helped me. My next problem would be, I have this sqlcommand and to be able to look up certain dates I will have to edit "DateFrom.text" to the date I want to show up. Is there anyway that I can connect a textbox to this so instead of going to the script and playing it, so I can edit the #11/04/04# & #12/30/04# while the program is in play mode?

SELECT Item_Code, SUM(Quantity) AS QTY, Description, SUM(Total) AS
Expr1
FROM Purchase WHERE Date BETWEEN #11/04/04# AND #12/30/04# GROUP BY
Item_Code, Description ORDER BY Description


Please help!!! Thanks!
Back to top
View user's profile Send private message Yahoo Messenger
VB_Developer
Newbie


Joined: 25 Feb 2006
Posts: 18
Location: Hyderabad, India

PostPosted: Feb 26th, 2006 04:05 AM    Post subject: Reply with quote

Hi,
Could you please elaborate your issue bit more.

Thanks
Back to top
View user's profile Send private message
xtine_m
Newbie


Joined: 24 Jul 2005
Posts: 7

PostPosted: Feb 27th, 2006 12:17 AM    Post subject: Reply with quote

Hi! I use data environment to do the datareport. So in the dataenvironment properties I typed this command:

SELECT Item_Code, SUM(Quantity) AS QTY, Description, SUM(Total) AS
Expr1
FROM Purchase WHERE Date BETWEEN #11/04/04# AND #12/30/04# GROUP BY
Item_Code, Description ORDER BY Description

and I connect this to the datareport. But my problem is I can't compile the program since I will have to edit the dataenvironment properties so that I can specify the dates (#11/04/04# AND #12/30/04# ) everytime I want to make the datareport. If I'll compile it then I can't touch the dataenvironment properties anymore. Ryt?

if you want I can send you my program. Just PM me for your email. Thanks!
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic