hello,

24sharon

Registered User.
Local time
Today, 14:50
Joined
Oct 5, 2004
Messages
147
I have textbox and click.

I want if I insert the value in the textbox and then click "ENTER" then the event done.

I dont want afterupdate because then if I go to another object it will done and its not good for me.

JUST when key "ENTER" down

thanks...
 
You could use the keydown procedure

Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)

If KeyCode = 13 Then

' event here

End If



End Sub


Hope this helps...
 
Well, you COULD just create an UPDATE command-button on the form using a wizard. That happens to be one of the functions the button wizards understand. But you still have the problem that if you navigate away from the form, you get an IMPLIED update. So what you would have to do is put some code in the BEFOREUPDATE event to trap a "dirty form" (me.Dirty = TRUE). In that case, you would have to do an UnDo action.

Oddly enough, that is ANOTHER thing the button wizard understands. So what you could do is put a CANCEL command-button on the form. Then take the code it generates and make it a subroutine.

In your CANCEL event, call the subroutine. In your BEFOREUPDATE event, call the subroutine and cancel the update. That way, the ONLY way to get off the form with an update is through the UPDATE button.
 
thanks

now I am looking for an example of "listview"

and how I work with it.

do someone have a link or a small example/

thank alot.
s,
 
I got but not all

I success insert listview, but from recordset. <file attach>

I want the listview from a value list.

for example I want to view the listvalue with the value: "father", "mother",...

how can I got it :rolleyes:
 

Attachments

Users who are viewing this thread

Back
Top Bottom