H
Hans - DiaGraphIT -
Hi!
I'm new to access database.
I have a simple table [allCodes] with 3 columns [myID], [myCode] and
[myCodeText]
I've created a simple form with wizard and selected simple skjema, view a
record at time.
The thing I want to do is to create an textbox where I can type a myCode,
and a button to click. On click event I wish to go to then actual record
wich holds the current myCode and display the text.
Is there a simple way? I do not know what wrongdoing am doing.
Here's my humble code:
DoCmd.GotoRecord acDataForm, me.MyCode, acGoTo, me.tbxFindCodeText.Text
When runng the form I can travel back and forth with the records, but after
typing a value in the textbox and click on button I recieve following error
run-time error '2185' and saying something about missing focus.
Apreciates any help.
I'm new to access database.
I have a simple table [allCodes] with 3 columns [myID], [myCode] and
[myCodeText]
I've created a simple form with wizard and selected simple skjema, view a
record at time.
The thing I want to do is to create an textbox where I can type a myCode,
and a button to click. On click event I wish to go to then actual record
wich holds the current myCode and display the text.
Is there a simple way? I do not know what wrongdoing am doing.
Here's my humble code:
DoCmd.GotoRecord acDataForm, me.MyCode, acGoTo, me.tbxFindCodeText.Text
When runng the form I can travel back and forth with the records, but after
typing a value in the textbox and click on button I recieve following error
run-time error '2185' and saying something about missing focus.
Apreciates any help.