Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Limit Table to one record 2

Status
Not open for further replies.

cbiker

Programmer
Jul 2, 2003
35
US
Can I limit a table to one record the table is used to set up a report so if there is more than one record we get the wrong results.
 
I have a table that's used to enter company contact data (company name, address, URL, fax & phone numbers). The application then uses this data as headers for the various reports. I needed to limit the table to one record, and I did this by accessing the table thru a form. The form's properties are set to:
Allow Edits Yea
Allow Additions No
Allow Deletions No
Data Entry No

Hope this helps.

The Missinglinq

"It's got to be the going,
not the getting there that's good!"
-Harry Chapin
 
Thanks for the help. I was thinking to hard I guess.
 
Best way--in the Table design:

Field:
name=Recid
Type=integer
Indexed=unique-no dups.
Validation rule=1
Validation Text=Only one record, please.
Give the record the value of 1.

No more can be added.
--jsteph
 
Great this is just what I was looking for Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top