473,606 Members | 2,101 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

RecordSelection Formula doesn't return correct records. every time

RecordSelection Formula doesn't return correct records. every time

Hi!
I am working in VB6-CR8.5

Either I use RecordSelection Formula or SqlQueryString, getting the
same problem:

My RecSeleStr is this
STR2 = " {vexp_veh.veh_n o} = ' " & 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.R ecordSelectionF ormula = Form1.STR2
CRViewer1.Repor tSource = Form1.Report1
CRViewer1.ViewR eport

Thanks.
Regards,
Rachana

May 11 '07 #1
0 1116

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

Similar topics

15
4652
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 field to start. If I edit that field and then click on the new record button in the navigation buttons, the form goes to a new record and each field has the default value of the previous record. If I put the focus in any field to start, edit that...
6
1874
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 all records matching the criteria (hmm...sound like a popular web site I know). Here is the immediate problem: my code (below) works fine on my computer, but on some of those belonging to my work colleagues (who will be the end users of the db)...
149
25093
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? -- Christopher Benson-Manica | I *should* know what I'm talking about - if I ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
0
978
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 to folders and files): public class CThingLikeFile
2
8198
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 .mdb I need to take the user's input in a text box and pass the result (wildcard) to the record selection formula prior to refreshing the crystal report.
16
4893
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 Microsoft must be installed on their servers. Now german Umlaute (ä, ü, ö) and quotes are returned incorrectly in SOAP fault responses. This can be easily verified: Implement the following in a web service method (just raises a SOAPException with a...
2
2058
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 this table. Even though I can see the CustomerID in the table and the corresponding number in the correct field on the form, it always seems to revert to the else statement's msgbox (see below). Interestingly, it will output Me.CustomerID as part...
13
27409
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
4315
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 between it and the parent report. "nextCycle" is a c# datetime object. My code for the formula is as follows: subCredits.DataDefinition.RecordSelectionFormula += "AND {Credits.VacationBegin} In Date(" + nextCycle.AddDays(-56) + ") To Date(" +...
0
8010
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8429
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8300
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5963
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5461
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3969
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2443
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 we have to send another system
1
1550
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1287
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.