Click here to Skip to main content
15,913,090 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralVB Data control Pin
mixahlos27-Jan-03 9:43
mixahlos27-Jan-03 9:43 
QuestionHow to catch DoubleClick event in treeview control Pin
26-Jan-03 23:34
suss26-Jan-03 23:34 
AnswerRe: How to catch DoubleClick event in treeview control Pin
Heath Stewart27-Jan-03 1:56
protectorHeath Stewart27-Jan-03 1:56 
Generalgenerating report based on subgroups Pin
mcm26-Jan-03 3:45
mcm26-Jan-03 3:45 
Generalcalling a subroutine at the beginnign Pin
NickOne25-Jan-03 14:16
NickOne25-Jan-03 14:16 
GeneralRe: calling a subroutine at the beginnign Pin
Hesham Amin26-Jan-03 10:52
Hesham Amin26-Jan-03 10:52 
GeneralRe: calling a subroutine at the beginnign Pin
Paul Farry22-Feb-03 17:41
professionalPaul Farry22-Feb-03 17:41 
Generalgenerating report based on parametres in Where clause Pin
mcm25-Jan-03 4:37
mcm25-Jan-03 4:37 
I am trying to generate a report in VB. What the report is generating is the individual product turnover in a given period (ie between 2 date values,obtained from 2textboxes), and grouped by product type. To do this, i have created a data environment, set up a connection and added a command. using the SQL builder, i have tried to create a SQL statement to satisfy the data i am trying to articulate. all the examples i have seen accept parametres in the select clause but not the Where so i dont know the syntax for what i am trying to achieve. here is the SQL:
SELECT Product.Description, COUNT(OrderDetail.Quantity) AS Quantity, SUM(OrderDetail.Price) AS Price, ProductType.Description AS TypeDescription FROM Product, ProductType, OrderGenerate, OrderDetail WHERE Product .TypeCode = ProductType.TypeCode AND (OrderGenerate.OrderDate) BETWEEN = ? AND = ?

and my code under the command button to generate the report is:
deProductTurnover.ProductTurnover_Grouping dStart, dFinish
rptProductTurnover.Show
i have defined the parametres and the appropriate groups aswell.

what am i doing wrong, what is the correct SQL statement? the error being returned is: "unabled to determine the parameter information for the parameters. Use the parameters Tab to specify appropriate info". any help would be greatly appreciated!
GeneralSerializing a strong typed collection Pin
Jan Tielens24-Jan-03 10:13
Jan Tielens24-Jan-03 10:13 
GeneralRe: Serializing a strong typed collection Pin
Jan Tielens3-Mar-03 7:31
Jan Tielens3-Mar-03 7:31 
QuestionVB 6.0 printf-like string function? Pin
Derek Price24-Jan-03 8:31
Derek Price24-Jan-03 8:31 
AnswerRe: VB 6.0 printf-like string function? Pin
pnpfriend24-Jan-03 9:44
pnpfriend24-Jan-03 9:44 
GeneralRe: VB 6.0 printf-like string function? Pin
Derek Price24-Jan-03 9:51
Derek Price24-Jan-03 9:51 
GeneralRe: VB 6.0 printf-like string function? Pin
mixahlos27-Jan-03 11:12
mixahlos27-Jan-03 11:12 
GeneralMinimize button Pin
Xanty24-Jan-03 6:31
Xanty24-Jan-03 6:31 
GeneralRe: Minimize button Pin
SimonS24-Jan-03 7:11
SimonS24-Jan-03 7:11 
GeneralRe: Minimize button Pin
Anomaly102428-Jan-03 16:39
Anomaly102428-Jan-03 16:39 
Generalint to a Pin
pnpfriend24-Jan-03 6:01
pnpfriend24-Jan-03 6:01 
GeneralRe: int to a Pin
SimonS24-Jan-03 7:05
SimonS24-Jan-03 7:05 
GeneralRe: int to a Pin
pnpfriend24-Jan-03 7:21
pnpfriend24-Jan-03 7:21 
GeneralRe: int to a Pin
SimonS24-Jan-03 7:36
SimonS24-Jan-03 7:36 
GeneralRe: int to a Pin
Nick Seng24-Jan-03 8:01
Nick Seng24-Jan-03 8:01 
GeneralRe: int to a Pin
Ray Cassick24-Jan-03 8:10
Ray Cassick24-Jan-03 8:10 
GeneralRe: int to a Pin
pnpfriend24-Jan-03 9:41
pnpfriend24-Jan-03 9:41 
Generalgenerating report based on values in 2textboxes Pin
mcm24-Jan-03 4:19
mcm24-Jan-03 4:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.