Solved

Reflect through control that SQL table has data

Posted on 2004-08-20
4
194 Views
Last Modified: 2010-04-23
Hi everybody:

I would like visually indicate on Win Form that specific SQL table has data in it. Nice thing would be to indicate what time data was loaded into SQL.

Any ideas would be appreceated.

RGDS
Sam
0
Comment
Question by:BOOBIC
  • 2
  • 2
4 Comments
 
LVL 28

Expert Comment

by:iboutchkine
ID: 11854462
Execute SQL
select count(*) from Table

and return the qty of records in the table
0
 

Author Comment

by:BOOBIC
ID: 11856480
iboutchkine,

Thank you  for your post. If I want to show that I have records in a SQL table at the front end through changing colors on checkbox, how to do that?

RGDS
Sam
0
 
LVL 28

Accepted Solution

by:
iboutchkine earned 200 total points
ID: 11880851
After you executed the count SQL you know how many records in your SQL table
if count = 0 then paint your checkbox in one color. If the count > than 0 than paint it to another
0
 

Author Comment

by:BOOBIC
ID: 11882399
iboutchkine,

Thank you for your post. Your points submitted.

RGDS
Sam
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now