473,427 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,427 software developers and data experts.

DataReport

34
Hi all, i'm using data report designer in vb6 to generate report...
in connection 1 theres command and to list all the data wanted i use sql command as follows:
Select * from Item_Stock where item_name = "XXXX" order by Date_purchase

the problem is, can i replace the "XXXX" with and input from a textbox from a form?
Sep 26 '07 #1
5 993
Hi all, i'm using data report designer in vb6 to generate report...
in connection 1 theres command and to list all the data wanted i use sql command as follows:
Select * from Item_Stock where item_name = "XXXX" order by Date_purchase

the problem is, can i replace the "XXXX" with and input from a textbox from a form?
its simple
Select * from Item_Stock where item_name = '" & txtItemNo.Text & "' order by Date_purchase

simply put ur txtfield name in ' " & txtname.text & " '
Sep 26 '07 #2
GROG
34
hmm.. where should i paste the code.. at the moment i paste it at the command property .. but it returns blank.. i've run in sql builder it returns the same..
Sep 27 '07 #3
jrtox
89
hello,

Can you paste your codding?
Sep 27 '07 #4
GROG
34
hmm.. where should i paste the code.. at the moment i paste it at the command property .. but it returns blank.. i've run in sql builder it returns the same..
Sep 27 '07 #5
Dököll
2,364 Expert 2GB
hmm.. where should i paste the code.. at the moment i paste it at the command property .. but it returns blank.. i've run in sql builder it returns the same..
This may not be what you want but you can have your report without doing any coding:

http://www.thescripts.com/forum/thre...65-Adodc1.html

Give it a whirl anyway to have another option...
Sep 27 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: berthelot samuel | last post by:
Hi everyone, I am currently trying to write a report based on a View of SQL Server. Basically, I have 3 tables : Hardware, SoftwareInstalled and Software with SoftwareInstalled that keeps track of...
1
by: Speed | last post by:
How to write informations from database in Page Header section like in Detal section of DataReport?
1
by: Gary | last post by:
Dear Is it possible using ASP to call VB6 DataReport? if yes any reference of creating those com+ of DataReport and Call method? Gary
0
by: David | last post by:
I have tried unsccessfully, to pass parameter values to a stored procedure that I'm using for a datareport. The stored procedure requires the input of an start date and end date for a search...
1
Awit
by: Awit | last post by:
Hello, I'm new here... I have a problem, I used DataReport in my program.. The problem is runtime error occur when i run the system, i can't make some modification at the table in database while...
5
by: anoopgopal007 | last post by:
Hi, I am using vb6 and datareport. I am updating the tables whle the program running. But the datareport doesnot show the updated information. Its always shows the previous value. But...
6
by: pramodrepaka | last post by:
hi this is pramod i am facing a small problem Private Sub Command_Click() Dim a As String a = InputBox("enter empno") If rs.State = 1 Then rs.Close rs.Open "select * from microbiology...
0
by: nishjee | last post by:
Hello friends, i need visual basic 6.0 code to export a datareport to html other than the defult option coming with datareport. I need this very urgently because when i am exporting the datareport...
9
smartchap
by: smartchap | last post by:
I have a table having 3 fields viz. SNo, FName and LName. The table has 10 records having SNo from 1 to 10. In DataReport I have 3 labels and 3 textboxes. I want to display all records from 1 to 10...
1
by: MaryKJolly | last post by:
I got this sample project from a website. But there is some syntax error in the statement which contains the CDate function. I can't detect the error? Can enybody help me? SUMMARY This article...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.