LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default Adding a Next Record button to UserForm

I have a button on a worksheet that the user can click when he wants to
find a record within the list. A userform comes up, asking for a PO# .
I have the code run a simple Cell.Find with the worksheet (Current
List).

In a crude way, I have it go to each field of that record, and populate
all the textboxes in a second userform . Works fine. Very simple.

However, I would like to also use this userform in another worksheet
(Deleted List) that will contain these same records that are put there
when the material (PO) is taken from the warehouse (and off the Current
List).

For the purpose of this userform, the difference in the 2 worksheets
is that the Current List will not contain duplicate lines with the same
PO#, while the Deleted List will have many duplicates. (Many times,
material will come in at different times from the same PO. And, parts
of a PO will leave the warehouse before the rest will.)

What I would like to do is to put a Next Record button on the userform
that shows all the fields of the record. Clicking the button would have
the next record populate in all the textboxes, just as it did with the
1st record.

Also, maybe a textbox that would contain a Y if there is another
record to look at. The user could then click the Next Record button if
there was a Y in that box. Over and over looking at each of the records
with the same PO# , until the Y is not in the box.
OR,
I suppose a better, but I'm sure a more complicated method would be
to have the button shaded when there is no other record found, and
active when there is more.

Anybody have something I could use? I've been looking at a good
number of places, but haven't found any examples that resemble what
I'm trying to do.

Hope I've made this clear enough. Sometime I make it more complicated
than it is.....
Thanks
J.O.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looping procedure calls userform; how to exit loop (via userform button)? KR Excel Programming 6 July 27th 05 12:57 PM
VBA: Pull Record Into UserForm Mcasteel[_10_] Excel Programming 2 October 26th 04 11:03 PM
VBA: Pull Record Into UserForm Mcasteel[_7_] Excel Programming 2 October 26th 04 06:27 PM
VBA: Pull Record Into UserForm Mcasteel[_9_] Excel Programming 0 October 26th 04 06:00 PM
Adding browse button to userform Brad[_11_] Excel Programming 1 December 1st 03 04:04 PM


All times are GMT +1. The time now is 10:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"