Database Forum / Paradox Topics / September 2008
Creating a .frm interface for a query
|
|
Thread rating:  |
jlynn - 28 Aug 2008 01:19 GMT I believe Bertil Isberg sent me instructions for accessing a query through a form quite a few years ago. I didn't gt around to it then, but I really need to get to it now. The standard query tapeworm is too long for my daily use. I have looked at some of the commercial options available, and they are not ideal, either.
I thought the instructions were on the DBcommunity, but didn't find them there.
Thank you.
Jim Giner - 28 Aug 2008 12:46 GMT "Standard query tapeworm"? Whatever could you mean by that?
Not sure what you're trying to do - accessing a query through a form? If you mean having a form window that provides selection criteria entry fields on it and a push button to generate the results based upon those, it's pretty simple - if you do opal. If not, then you be learning soon.
Is that what you want to do?
>I believe Bertil Isberg sent me instructions for accessing a query > through a form quite a few years ago. I didn't gt around to it then, [quoted text clipped - 7 lines] > > Thank you. Steven Green - 28 Aug 2008 13:03 GMT I think that's exactly what he meant.. the raw query form stretches out forever.. *if* you have too many fields in your table (g)
and I also think you gave the correct answer.. sure, you can create a form that'll let you make criteria selections, then pass it to the query.. *if* you know how to write paradox code..
-- Steven Green - Myrtle Beach, South Carolina USA
Diamond Software Group http://www.diamondsg.com/main.htm Paradox Support & Sales
Diamond Sports Gems http://www.diamondsg.com/gemsmain.htm Sports Memorabilia and Trading Cards
> "Standard query tapeworm"? Whatever could you mean by that? > [quoted text clipped - 15 lines] >> >> Thank you. Jim Giner - 28 Aug 2008 13:55 GMT never pictured it as a tapeworm before. Now I'll never forget!
so - if that's what you want jlynn, let's hear so and I'll sketch something out for you.
>I think that's exactly what he meant.. the raw query form stretches out >forever.. *if* you have too many fields in your table (g) [quoted text clipped - 33 lines] >>> >>> Thank you. Robert Wiltshire - 29 Aug 2008 04:32 GMT > never pictured it as a tapeworm before. Now I'll never forget! They make good pets. They go where you go, eat what you eat..... =)
Which reminds me of eating fried mozzarella sticks, it seems to be one of the only foods you can eat where part of it is in your hand, and the other end is in your stomach.
You can floss your throat if you seesaw it back and forth.
Anyhow...... I have created forms for ad hoc queries in applications.
I put a field on the form, and added a select table code to a button next to the field.
When a table is selected, a list box on the left side of the form is populated with the fields. Initially, I populate the list with fields in position order, but provide two small buttons under the list box, to toggle sort order of the list box between position order and alphabetical order. This is helpful with tables that have a lot of fields, and helps people who did not design the table, or people not intrically familiar with the table design.
When a field in the list box gets clicked, I add that field to mro object on the form. The mro object has 2 columns, one to put the name of the field, and then one for the user to type in the criteria for the query.
Then when I click a "go" button, a query gets created behind the scenes. When I have used this simple technique, I usually insist that the query return all fields in the table, and do not do calculations in the query.
It is primitive, but has been handy several times.
Robert Wiltshire
Jeff Shoaf - 30 Aug 2008 00:26 GMT The worms go in, the worms go out, They go in your belly and come out your mouth...
Sorry 'bout that - couldn't resist!
> never pictured it as a tapeworm before. Now I'll never forget! Tony McGuire - 30 Aug 2008 16:01 GMT > The worms go in, the worms go out, > They go in your belly and come out your mouth... The worms go in, the worms go out, The worms play pinochle on your snout.
(GO IN your belly? Is this for a corpse or something? :-) )
------------------------------ Tony McGuire
Jeff Shoaf - 30 Aug 2008 23:42 GMT >> The worms go in, the worms go out, >> They go in your belly and come out your mouth... [quoted text clipped - 6 lines] > ------------------------------ > Tony McGuire Yeah, yeah, but where did they get the cards? And how do they shuffle w/ no hands?
Tony McGuire - 31 Aug 2008 02:01 GMT > Yeah, yeah, but where did they get the cards? And how do they > shuffle w/ > no hands? Well, that's the real interesting part of the story.
You see, they line up along the nasal passage, and coordinate releasing their cards with the inhaling and exhaling. There is a group who randomly pause a card and then re-release it so the order of cards changes. A group is also assigned to catch the cards as they come cascading in. Another group slithers the resorted cards, stuck to their backs with a bit of mucus, back up and out the snout.
Where did the cards come from? The last I heard the belief was that a charity church group donated them for the entertainment value on Thursday evenings. Another group believes the cards were donated by Boy Scouts. Most hold that as complete wild speculation.
------------------------------ Tony McGuire
Jeff Shoaf - 31 Aug 2008 19:36 GMT >> Yeah, yeah, but where did they get the cards? And how do they >> shuffle w/ [quoted text clipped - 16 lines] > ------------------------------ > Tony McGuire Wow, I learn something almost every time I come here!
Now, (purely to satisfy my scientific curiosity, you understand...) how do they detect the card suit and value, since they have no eyes?
Tony McGuire - 01 Sep 2008 01:50 GMT > Now, (purely to satisfy my scientific curiosity, you understand...) > how > do they detect the card suit and value, since they have no eyes? Well, that's ANOTHER real interesting part of the story...
------------------------------ Tony McGuire
Tony McGuire - 30 Aug 2008 13:38 GMT >I think that's exactly what he meant.. the raw query form stretches >out > forever.. *if* you have too many fields in your table (g) 400+ fields?
 Signature ------------------------------ Tony McGuire
|
|
|