S
Sparky Arbuckle
I am working on a web application for a company that uses an existing
company database. I just found out before the long weekend that a
couple hundred of the items in the table aren't completely related.
I am mostly using 2 tables for the project: ItemVersion, ItemVersionRev
ItemVersion has fields: ItemVersion, ItemNumber, RecordID
ItemVersionRev has fields: RecordID, RevNumber
All of the items in the database have ItemNumbers (obviously) and most
have revision numbers (RevNumber). One of the functions that I created
for my application finds the MaxOfRevNumber. I ran a query on the
database and saw that dreaded error screen that read "There is no row
at position 0"
The query that I have now simply returns MaxOfRevNumber. Is there a way
to program a query to check and see if an ItemNumber has a Revision and
depending on the result, return a certain value. For example, if there
is not a corresponding RevNumber, then return 0 as the RevNumber?
I'm sorry for the long post and if needed can clarify more.
company database. I just found out before the long weekend that a
couple hundred of the items in the table aren't completely related.
I am mostly using 2 tables for the project: ItemVersion, ItemVersionRev
ItemVersion has fields: ItemVersion, ItemNumber, RecordID
ItemVersionRev has fields: RecordID, RevNumber
All of the items in the database have ItemNumbers (obviously) and most
have revision numbers (RevNumber). One of the functions that I created
for my application finds the MaxOfRevNumber. I ran a query on the
database and saw that dreaded error screen that read "There is no row
at position 0"
The query that I have now simply returns MaxOfRevNumber. Is there a way
to program a query to check and see if an ItemNumber has a Revision and
depending on the result, return a certain value. For example, if there
is not a corresponding RevNumber, then return 0 as the RevNumber?
I'm sorry for the long post and if needed can clarify more.