N
Naresh Kumar Saini
I have some experience in creating Tables, Quries, Reports and Forms but no
knowledge of VBA. I am experimenting with Macros for the first time. My Table
is simple -- no relationship, just a single table. For data entry I use a
Form. I frequently need perform a sequence of action on this Form:
(1) Find a Record (based on ID field)
* For this, click on ID control, press Ctrl-F to open Find and Replace box
and input required ID (and also set other options if they are incorrect from
some previous session -- 'Match' and 'Search'; 'Match Case' is not important
here.
(2) Click on Find Next, then Cancel, then select the Select Record with
mouse/Edit menu. Then click on New Record Button (so whole record is still
selected) and Press Control-V to paste the record there.
(3) Finally click on a particular control that would be changed now.
I think a Macro can do these actions more efficiently. For this I added a
Button on my Form and I am editing the 'On Click' Properties of this button.
I am stuck at:
(1) How to obtain user input for the Find box (Record ID to be found)
(2) How to Select Record (Edit Menu or Shift+SpaceBar)
I am sure there must be some ways to perform these actions without using
VBA. I hope someone can help.
knowledge of VBA. I am experimenting with Macros for the first time. My Table
is simple -- no relationship, just a single table. For data entry I use a
Form. I frequently need perform a sequence of action on this Form:
(1) Find a Record (based on ID field)
* For this, click on ID control, press Ctrl-F to open Find and Replace box
and input required ID (and also set other options if they are incorrect from
some previous session -- 'Match' and 'Search'; 'Match Case' is not important
here.
(2) Click on Find Next, then Cancel, then select the Select Record with
mouse/Edit menu. Then click on New Record Button (so whole record is still
selected) and Press Control-V to paste the record there.
(3) Finally click on a particular control that would be changed now.
I think a Macro can do these actions more efficiently. For this I added a
Button on my Form and I am editing the 'On Click' Properties of this button.
I am stuck at:
(1) How to obtain user input for the Find box (Record ID to be found)
(2) How to Select Record (Edit Menu or Shift+SpaceBar)
I am sure there must be some ways to perform these actions without using
VBA. I hope someone can help.