Microsoft
Software
Hardware
Network
Question : Microsoft Access Unbound Field Problem
I have a Microsoft Access 2007 database that has a table containing personnel information. I am pulling the last name with full social security number. I have a parameter query running that is pulling data when the user types in the last four digits of the Social Security Number. I have a form listing the records by Social Security Number with Last Name based on the parameter query pulling the records. I need an unbound field on the form that will give the message, "no records found" when the user types in a four digit SSN that does not exist.
How can I use an If statement some how to say If SSNNUMBER = " " then Messge No records found" other wise have the unbound field be invisible otherwise?
jjc9809
Answer : Microsoft Access Unbound Field Problem
Use the attached as the the current event of your subform, substitute your label's name for MyLabel.
1: 2: 3:
Private Sub Form_Current() Me.Parent.MyLabel.Visible = Me.Recordset.RecordCount = 0 End Sub
Open in New Window
Select All
Random Solutions
If a field is blank I need it let other calculations after it work in a form. I know that its something to do with a null.
FOLDER OPTIONS AND SEARCH NO LONGER IN WIN XP
Determine whether file is saved in Access 2007 "trusted location"
Try to open a Silverlight project on Visual Studio 2008 but I can't
SBS 2008 Error messages
Connecting a remote server (Windows 2000) to a remote main server (Windows 2003 Standard)
Trying to rank top 10 records in Access query by a group
Auto Compact
ADO connecting to access database - no named arguments
The item '/Data Sources' already exists