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: 108
Default spinbutton In Form

Hello €“
In my form resides a combobox, spinbutton and labels. Initializing the form
populates the combobox with unique IDs. Selecting an ID filters that
records detail to another location wherein the forms labels then display
said detail. Due to size constraints the form can only display one record at
a time and its field headings. All is well until I try to set the max value
of the SpinButton1. If I directly set its max property to 8, it does not
stop incrementing after 8 clicks. If I use this found code, same issue.

Private Sub SpinButton1_SpinUp()
With SpinButton1
.Min = 0
.Max = 3
.Value = .Max
End With
Range("RowLocal").Value = Range("RowLocal").Value + 1
PopulateFields
End Sub

What Im trying to accomplish is the following. From the filtered data I
get a count of records. That count is what I want to fix the max scrolling
to. As the spinbutton clicks up or down, the respective record detail
displays in the form. I dont want the spinbutton to go beyond the count of
filtered records displaying blanks. Control can be tricky€¦

Sincerely,
Arturo
 
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
Spinbutton pcor New Users to Excel 2 November 6th 07 03:16 PM
Spinbutton Ben B Excel Discussion (Misc queries) 3 March 9th 06 11:38 AM
spinbutton? CG Rosén Excel Programming 1 November 29th 04 11:16 PM
Multipage & Spinbutton controls on a form Bhuktar S Excel Programming 1 April 21st 04 01:50 PM
Spinbutton sorting civms47 Excel Programming 1 December 24th 03 01:10 PM


All times are GMT +1. The time now is 06:56 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"