Form display

rythem

I.S Analyst
Local time
Yesterday, 23:16
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
 
At what point do you want to have it point to a record? When you click a button?

:) Ken
 
Are you wanting to open it and start entering a new record?

:) Ken
 
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.
 
Design

In Design View go to Properties, on the Data Tab set Data Entry to Yes
 
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

Back
Top Bottom