Form display (1 Viewer)

rythem

I.S Analyst
Local time
Today, 12:17
Joined
Mar 28, 2005
Messages
30
i have a form and it always displays the first record as it opens.
i dont want it to display any records and be just blank.

i have tried the code on Form_load
for i = 1 to col.count
col.item(i)=""
next

i dont know whats wrong with this code.

please help
 

KenHigg

Registered User
Local time
Today, 15:17
Joined
Jun 9, 2004
Messages
13,327
At what point do you want to have it point to a record? When you click a button?

:) Ken
 

KenHigg

Registered User
Local time
Today, 15:17
Joined
Jun 9, 2004
Messages
13,327
Are you wanting to open it and start entering a new record?

:) Ken
 

rythem

I.S Analyst
Local time
Today, 12:17
Joined
Mar 28, 2005
Messages
30
i just want that the first time i open the record, none of the users must see the existing records.

they must have to do a 'find" to get a record.
 

trucktime

Registered User.
Local time
Today, 13:17
Joined
Oct 24, 2004
Messages
556
Design

In Design View go to Properties, on the Data Tab set Data Entry to Yes
 

Sergeant

Someone's gotta do it
Local time
Today, 15:17
Joined
Jan 4, 2003
Messages
638
rythem said:
i just want that the first time i open the record, none of the users must see the existing records.

they must have to do a 'find" to get a record.
You could apply a filter in the form's OnLoad event. (one that will never return any records)
Code:
Private Sub Form_Load()
    Me.Filter = "PlayerID = 1000000"
    Me.FilterOn = True
End Sub
Set form's Allow Additions property to NO, and put your "Find" mechanism in the form's footer. Use this to change the Filter string to whatever they "Found".
Me.Filter = "Field = [whatevertheyfound]"
 

Users who are viewing this thread

Top Bottom