English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a data entry form that calls a query where the user enters the ID number to retrieve records. If there is no record of that number, its just a blank form. Can i specify a message so that if the ID doesn't exist the message can pop up? how?

2006-11-02 06:21:15 · 3 answers · asked by klumzy 3 in Computers & Internet Programming & Design

The form pops up right away as soon as the database is opened asking for the ID. s0 the enter parameter box comues up right away.

2006-11-02 06:44:20 · update #1

let's say the user enters 11 , and there is no ercord with an id 11.

2006-11-02 06:45:27 · update #2

Thanks, but i don't see the nodata option.

2006-11-02 07:50:03 · update #3

3 answers

Ohhh... I misunderstood you. I am not too familiar with data forms in Access, I prefer VB. Is there an 'On EOF' event maybe on the form? You might want to repost.

Do you have a button that the user presses to get the record?

In the code of the button just check for the length of the id. Like so :

If Len(txtId.Text) > 0 Then
...If IsNumeric(txtId.Text) Then
......'Perform Search
...Else
......MsgBox " That is not a valid id number!"
...End If
Else
...MsgBox " That is not a valid id number!"
End If

***What is the 'enter parameter box'? Is it an inputbox or another actual form? Is it called from 'On Load'?

The periods are there for indentation. I hope that helps and answers your question. If not provide more detail.

2006-11-02 06:41:11 · answer #1 · answered by Special Ed 5 · 0 0

Inside the form design.
on properties dialogue.
select all(tab)
select on nodata
write an event procedure that tells no data,and quit the form.

2006-11-02 15:43:08 · answer #2 · answered by monalisa 2 · 0 0

hello friend
I am very happy we can discuss about business experience .i hope we can told each other more important experience .i have a website online store, we are pleasure to offer you large selection of fine products .we are a dedicated shoes .clothes . curio computer for many years ,on this website we will introduce our brand ,as Jordan Puma Nike Gucci Monster dunk Turbo tommy polo Adidas Prada Sony ,Panasonic Lenovo Apple Fujitsu an so on, i hope you can wasting a little time to looking for it, the quality is very goods ,and the price is very low,we can offer large numbers of goods for the seller, this is my MSN llpshop@hotmail.com and bjfshop@hotmail.com .my email address is bjfshop@hotmail.com fengshop@hotmail.com
i hope you can joins us ,we are happy contact with some overseas friends .make friend with you ,and make a business-ship with you ,we hope you can interest in our website goods and joins us .thank you very much .
Have a nice day
llpshop

2006-11-02 14:24:17 · answer #3 · answered by Anonymous · 0 2

fedest.com, questions and answers