473,486 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem creating an array in VB for Crystal Rpts10

2 New Member
I am reading a table in PSQL v9.1. I want to select certain item numbers out to put in an array to use later in my Crystal Reports as separate subreports. I am a newbie to VB, here is what I have so far:

Expand|Select|Wrap|Line Numbers
  1. Dim BOMIems() as String
  2. Dim Index as Number
  3. Index = 0
  4. Dim TableItem as String
  5. TableItem = {ReportRecords.Forkey18_2}
  6.  
  7. Do While    {ReportRecords.Forkey5_4} = "F"
  8.   BOMItems(Index) = TableItem
  9.   Index = Index + 1
Please help me, I am at a loss and I have already used up my deadline.
Thanks anyone!
Jan 21 '08 #1
3 1037
Killer42
8,435 Recognized Expert Expert
Expand|Select|Wrap|Line Numbers
  1. Dim BOMIems() as String
  2. Dim Index as Number
  3. Index = 0
  4. Dim TableItem as String
  5. TableItem = {ReportRecords.Forkey18_2}
  6.  
  7. Do While    {ReportRecords.Forkey5_4} = "F"
  8.   BOMItems(Index) = TableItem
  9.   Index = Index + 1
You didn't tell us what the problem is. I see, though, that you've used two different names for the same array.
Jan 22 '08 #2
ChesterHargrove
2 New Member
You didn't tell us what the problem is. I see, though, that you've used two different names for the same array.
Thank you for responding Killer42. The problem is I don't know how to complete my DO WHILE Loop. Also, don't know if my logic is right to
accomplish my results.
Thanks
Jan 22 '08 #3
Killer42
8,435 Recognized Expert Expert
Thank you for responding Killer42. The problem is I don't know how to complete my DO WHILE Loop. Also, don't know if my logic is right to accomplish my results.
I hope someone else can help with that, as I'm not familiar with Crystal Reports at all.

For example, the {ReportRecords.Forkey18_2} means absolutely nothing to me.
Jan 22 '08 #4

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

Similar topics

2
3851
by: windos | last post by:
Dear all, I am a new in using Crystal Report. I'm trying to add this query in CR : SELECT
5
1541
by: Ross27 | last post by:
Imagine a table in Microsoft Sql Server 2000 named Pictures with three fields. A primary key ID(int), a Name(nvarchar) and a Picture(image) field. Lets put some records into the table. The first...
1
2500
by: hlam | last post by:
After deploying the application and running it on an XP p.c. I get the message from Crystal Reports Viewer Window: Load Report Failed Here is what I've used: . Connecting to Sql Server 2000...
0
1659
by: Monali | last post by:
Hi, I created a ASP.NET crystal reports web site in VS 2005. I wanted to display the data in a DataSet in the Crystal Reports viewer control. I am getting the DataSet from another dll. The...
0
1521
by: BigJohn | last post by:
I have created a new Crystal Report file in my project (CR.rpt). I previously added references to Crystal...Engine, ReportSource, Shared, Web. When I save the .rpt file using the "designer", I get...
1
1556
by: BK | last post by:
A little rant first... I have 15+ years experience with developing software. Why is it that everything related to creating reports in .NET seems so convoluted to me? I don't want to use...
1
959
by: nairdeepthi2000 | last post by:
Hello friends, I am creating crystal reports, I have used a crystal report viewer, but when i run it , i am asked the database login, I have set the windows NT Integrated security,so what userID...
1
1727
by: pintoo | last post by:
Hi, I have 2 sites (Site A, B) running on same windows 2003 server pointing to different home directories. User logs into site A and is shown a.aspx page and user credentials are saved in...
4
1497
Claus Mygind
by: Claus Mygind | last post by:
I am trying to create a custom object, with objects that have objects. My problem is with the last object in the chain (sample), rather than create an additional object for a new value it simply...
0
6964
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
7126
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
7175
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...
0
7330
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
5434
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
4559
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...
0
3070
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
1378
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 ...
0
262
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...

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.