473,480 Members | 2,592 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

RecordSelectionFormula doesn't return correct records. every time

RecordSelectionFormula doesn't return correct records. every time

Hi!
I am working in VB6-CR8.5

Either I use RecordSelectionFormula or SqlQueryString, getting the
same problem:

My RecSeleStr is this
STR2 = " {vexp_veh.veh_no} = ' " & mVeh & " ' "

When prog. runs:

If first time val. is given as "XXX" then it shows corr. report, all
recs. of vehicle no "XXX" only.
But next time onwards, in the case of other values it behaves in
funny way, either shows all the recs. or no recs.
Again, if I enter, "XXX" then it gives prop. result.
In the case of DATES, still more funny thing happens.
It seems, it doesn't get refreshed.
and uses very first selected data for all the next selections.
How to overcome?
Rest code:
Public Report1 As New CrystalReport1

Form1.Report1.RecordSelectionFormula = Form1.STR2
CRViewer1.ReportSource = Form1.Report1
CRViewer1.ViewReport

Thanks.
Regards,
Rachana

May 11 '07 #1
0 1106

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
4641
by: Steve | last post by:
I have a form with about 25 fields. In the BeforeUpdate event of the form, I have code that sets the default value of each field to its current value. For a new record, I can put the focus in any...
6
1855
by: benb | last post by:
I have form that looks a lot like a search bar for the user to search for records matching specified criteria (e.g. first names containing "ben"). For robust results, an intermediary form displays...
149
24955
by: Christopher Benson-Manica | last post by:
(Followups set to comp.std.c. Apologies if the crosspost is unwelcome.) strchr() is to strrchr() as strstr() is to strrstr(), but strrstr() isn't part of the standard. Why not? --...
0
971
by: pagates | last post by:
Hi Gurus, I am having a problem using Xml Serialization - it seems to work only the second time I try to use it during runtime. Here's a simplified example (the project is roughly equivalent...
2
8187
by: Helen | last post by:
VB .NET 2002 Crystal Reports 9 Hello: OK, I'm getting closer with this. Can someone please help with this last piece? Main report oracle 7 db Subreport totally unrelated historical Access...
16
4864
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
2
2047
by: Alan | last post by:
OK, I have a table called tblPVDMatch with a list of customerID's in it. I want to perform a lookup on this table to display a message box if the CustomerID field on the form matches an entry in...
13
27388
by: hn.ft.pris | last post by:
Hi: I have the following simple program: #include<iostream> using namespace std; int main(int argc, char* argv){ const double L = 1.234; const int T = static_cast<const int>(L); int arr;
1
4306
by: justin00 | last post by:
I'm having some trouble whenever I'm trying to apply date queries to my report recordselectionformula. I'm using c# with an Access db. The report is a subquery with links already established...
0
7055
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,...
1
6760
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
7022
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
5365
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,...
1
4799
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
3013
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...
0
3004
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
572
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.