IBM developerWorks
           C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old March 12th, 2003, 02:13 PM
j.kraft j.kraft is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: West Palm Beach, FL
Posts: 2 j.kraft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How do I use queries and user input to generate a cached table with Borl. C++ Build.?

I am using MySQL and Borland C++ Developer 6 to create an in-house CRM database. I can access the DB and have it pull up lists generated by the tables, but what I am having trouble with is figuring out how to have it generate output from the DB based on a SQL query. (I am trying to add some formatting to the output)

Also, which objects do I use in Borland Devel. to generate a SQL query based on user-supplied values (i.e. database search module)

--Justin.

Reply With Quote
  #2  
Old March 12th, 2003, 04:14 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 2 h 5 m 45 sec
Reputation Power: 797
>> (I am trying to add some formatting to the output)
Are you trying to generate a report or what? For that, there's the QReport component set (on the QReport tab).

>> Also, which objects do I use in Borland Devel. to generate a SQL query based on user-supplied values (i.e. database search module)
The TQuery object (on the BDE tab) springs to mind.

Hope this helps

Reply With Quote
  #3  
Old March 12th, 2003, 05:38 PM
j.kraft j.kraft is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: West Palm Beach, FL
Posts: 2 j.kraft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for the query info.

As for the search function, I'm not generating a report, I'm trying to design a simple application that will query a products database and return the specs for a specific product. To narrow the product down, I want to be able to search by one of four criteria: lentrh, width, height, or model number. Just one is sufficient to get a list of products, so multiple search criteria is not nessecary.

Not to throw a wrinkle at the problem, but I just realized (While typing the above) that I need to generate a query that will return all items with a value close to the entered search criteria, not nessecarily an exact match... (I am going to take this same code and re-adapt it for the contact database portion of the application, so I might as well do it here.)

I think I'm getting in over my head, but I should reall know what I'm doing by the end of this project!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > How do I use queries and user input to generate a cached table with Borl. C++ Build.?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway