Hi all!
As threatened, here's another question from me. I've tried reading the resources that are available to me (Manuals, "Xbasic for Everyone" (for Alpha Five Version 3), the learn alpha site, many of the messages in this forum and the code archive), but have not found how to handle what I thought would be a fairly straightforward task, given the power of Alpha Five. Of course, if I have missed it in the reading, please be sure to tell me where it is to be found!
I am writing an application to track where we are storing financial records. I need to keep track of the kind of record a particular item is, so that I know how long the record needs to be stored. I want to link items and categories with a numeric ID field, so that I can make the ID be an autoincrementing field. I do *not* want to show the users the ID field, as it means nothing to them. I figured that it would be straightforward to have a table lookup of the text field naming the category populate a dropdown list to show the user, while my program stored the ID in my item record. I've been flailing away in the documentation and Field Rules (and other places) most of today and some of yesterday, and not gotten any closer to the solution. What am I missing? I know that I am beginning with this, so don't worry about explaining things at too low a level for me.
For a little more concrete detail, here is an extract of relevant details from my database design:
Thanks!
Greg
As threatened, here's another question from me. I've tried reading the resources that are available to me (Manuals, "Xbasic for Everyone" (for Alpha Five Version 3), the learn alpha site, many of the messages in this forum and the code archive), but have not found how to handle what I thought would be a fairly straightforward task, given the power of Alpha Five. Of course, if I have missed it in the reading, please be sure to tell me where it is to be found!
I am writing an application to track where we are storing financial records. I need to keep track of the kind of record a particular item is, so that I know how long the record needs to be stored. I want to link items and categories with a numeric ID field, so that I can make the ID be an autoincrementing field. I do *not* want to show the users the ID field, as it means nothing to them. I figured that it would be straightforward to have a table lookup of the text field naming the category populate a dropdown list to show the user, while my program stored the ID in my item record. I've been flailing away in the documentation and Field Rules (and other places) most of today and some of yesterday, and not gotten any closer to the solution. What am I missing? I know that I am beginning with this, so don't worry about explaining things at too low a level for me.
For a little more concrete detail, here is an extract of relevant details from my database design:
Code:
Table structure for Category.dbf Name Type Length -------------- ------ ------ ID N 8 Name C 80 Table Structure for Item.dbf Name Type Length -------------- ------ ------ ID N 8 Description C 80 CategoryNumber N 8
Greg
Comment