Hey Sandra,
I am selecting records using sql select. heres the code:
SELECT [Test Cases].[GAB/SS#], [Test Cases].[Doc-Date], *
FROM [Test Cases]
WHERE ((([Test Cases].[GAB/SS#])=([Forms]![Final Data
Retrieval]![GabId])))
ORDER BY [Test Cases].[Doc-Date] DESC;
Basically, I have a query based form where i enter the
gabId and if the gabId doesnt match any records i need an
error saying that.
Thanks for the help
Danny
-----Original Message-----
Hi Danny,
You need to provide a bit more information -
How are you selecting records? With a query based form, a query by
itself, a subform?
What code do you currently have?
--
Sandra Daigle [Microsoft Access MVP]
Please post all replies to the newsgroup.
danny wrote:
Hey,
I am using a primary key to select records. But i am
tyring to figure out that when i enter an invalid key how
can i get it show an error msg instead of outputting 0
resulsts.
Thanks in advance.
Danny
.