Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a "report designer" that I wrote so the users could create reports of their own. When the user selects a what "catalog" they want to use I populate a listbox with the fields pertaining to that "catalog" which in most cases is a view.

 

In order to get the fields I run a "select top 1" query. there has to be a different way to get the fields. Any ideas? I did do a search on the forums but didn't find anything that would help.

Posted
A "Select Top 1" query is only going to give you one record. I wouldn't think that you would need a list box for only 1 record.
Being smarter than you look is always better than looking smarter than you are.
Posted
So, your just getting a list of fields that are associated with the selected "catalog"? I would think a simple "Select fields From tblTheFields Where Catalog = [your selected catalog]" would pretty much get the job done.
Being smarter than you look is always better than looking smarter than you are.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...