473,395 Members | 1,442 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,395 software developers and data experts.

VB6 & Crystal Report v10 Coding

I am using VB 6 and Crystal report v10.

I have a field that is the type of training session a student does, i.e. "Beach Training".

I want to retrieve all the sessions from a given date i.e. "Last Grading date" The code, in VB6, is not working any help much appreciated.

Below is the code I am using:

myReport.RecordSelectionFormula = "{qry_ATTENDANCE.SESSION}= '" & frm_CryReports.dbc_FillMembers.Text & "' and " & " > {qry_Attendance.Last Grading Date} & "
Nov 7 '08 #1
2 1600
HI,

I'm not a speciallist in Crystal Report but in your query, looks a like that is missing a simple quote on last parameters.

Expand|Select|Wrap|Line Numbers
  1. myReport.RecordSelectionFormula = "{qry_ATTENDANCE.SESSION}= '" & frm_CryReports.dbc_FillMembers.Text & "' and "' & " > {qry_Attendance.Last Grading Date} & '"
  2.  
Try this and let me know if work out.

RPicilli
Nov 7 '08 #2
HI,

I'm not a speciallist in Crystal Report but in your query, looks a like that is missing a simple quote on last parameters.

Expand|Select|Wrap|Line Numbers
  1. myReport.RecordSelectionFormula = "{qry_ATTENDANCE.SESSION}= '" & frm_CryReports.dbc_FillMembers.Text & "' and "' & " > {qry_Attendance.Last Grading Date} & '"
  2.  
Try this and let me know if work out.

RPicilli
Hi RPicilli

Thanks for your suggested code. Unfortunately not working but it does not give me the same error so its on the right track.
I may need to look at formatting the date field.
Again thanks for your help

Mick
Nov 13 '08 #3

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

Similar topics

0
by: BATISTA | last post by:
Hi , I am working in c# with crystal report XI. I read an example about dynamic image location .. 1) In that we have a xml xchema file with two fields n amed country--datatype is string,...
3
by: Eric Clapton | last post by:
Hi, How do you put the Crystal Report inside Visual Basic coding?
3
by: route_coder | last post by:
I am using access database to create a crystal report in VB.NET Everything works fine when I run on my machine. But when I am deploying it other windows machines. It is asking for database server...
0
by: John Kastrinos | last post by:
Yes, I know this is more of a Crystal group question. I posted there about 2 weeks ago, but no one EVER replies over there. So, I thought I would take a shot here. If anyone has heard of this,...
3
by: Trichy | last post by:
Hi Can any one help me. I added crystal report item to my project .net. After connecting to database , i inserted three columns from table. I ran report in ..net is working fine. My problem, ...
0
by: Chris | last post by:
I have the following situation in a VB.Net App I am working on: 1.)A report created in VS.Net 2003 using the CR.Net component of VS 2003. 2.)The datasource for the report is a Stored Proc in a...
1
by: riyaz | last post by:
i am new to .net environment, anyone can advise me how to create a crystal report ,how to connect to databse and to display in web page .As i m developing asp.net based web application i want...
0
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that...
0
by: piyumi80 | last post by:
I'm generating some reports using Crystal Report Access Database.Ican give the database path through the Crystal Report.But I need to give a database path to the crystal report through the Vb.Net...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.