A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

CYCLING THROUGH A COMBO_BOX via code and updating subform



 
 
Thread Tools Display Modes
  #1  
Old August 24th, 2004, 02:27 AM
Tweedy
external usenet poster
 
Posts: n/a
Default CYCLING THROUGH A COMBO_BOX via code and updating subform

I have a form that updates, via an unbound cbo, a subform that shows a
member's acct. balance. (the cbo is the member list). I want to automate an
end-of-month "fund transfer" by cycling through the cbo one member at a
time, check balance and run code based on the value finishing with updating
the subform balance. I then want to cycle the cbo to the next member and
repeat until EOF. The cbo should update the subform of course. I'm pretty
confident I can do the "internal logic" but haven't been successful getting
the cbo to cycle.

Thanks in advance for any and all replies!
--
Ray Tweedale
All-around-nice-guy
  #2  
Old August 24th, 2004, 02:35 AM
Tweedy
external usenet poster
 
Posts: n/a
Default

ADDITION TO FIRST POST !!
I want to do this via a cmd control. one-click and voila, all fund transfers
made, recorded and documented


  #3  
Old August 24th, 2004, 04:21 PM
Kevin Sprinkel
external usenet poster
 
Posts: n/a
Default

You can do it on a Recordset based on the same SQL as your
combo box.

HTH
Kevin Sprinkel

-----Original Message-----
I have a form that updates, via an unbound cbo, a subform

that shows a
member's acct. balance. (the cbo is the member list). I

want to automate an
end-of-month "fund transfer" by cycling through the cbo

one member at a
time, check balance and run code based on the value

finishing with updating
the subform balance. I then want to cycle the cbo to the

next member and
repeat until EOF. The cbo should update the subform of

course. I'm pretty
confident I can do the "internal logic" but haven't been

successful getting
the cbo to cycle.

Thanks in advance for any and all replies!
--
Ray Tweedale
All-around-nice-guy
.

  #4  
Old August 24th, 2004, 05:13 PM
Tweedy
external usenet poster
 
Posts: n/a
Default

Kevin,

I need actual code. I've tried some Bookmarking examples I found but was
unable to get them to work. I don't have access to that sample right now but
I recall it cloning the rs and using bookmark.

I've know VB well (not VBA though) and know basic Access.



"Kevin Sprinkel" wrote:

You can do it on a Recordset based on the same SQL as your
combo box.

HTH
Kevin Sprinkel

-----Original Message-----
I have a form that updates, via an unbound cbo, a subform

that shows a
member's acct. balance. (the cbo is the member list). I

want to automate an
end-of-month "fund transfer" by cycling through the cbo

one member at a
time, check balance and run code based on the value

finishing with updating
the subform balance. I then want to cycle the cbo to the

next member and
repeat until EOF. The cbo should update the subform of

course. I'm pretty
confident I can do the "internal logic" but haven't been

successful getting
the cbo to cycle.

Thanks in advance for any and all replies!
--
Ray Tweedale
All-around-nice-guy
.


  #5  
Old August 25th, 2004, 02:53 PM
Kevin Sprinkel
external usenet poster
 
Posts: n/a
Default

Ray,

I'm afraid I can't help you further; I've never had the
need to step through a recordset, although any good Access
Reference book should be able to help you.

See VBA Help (Ctrl-G, Help from the Database Window) on
the RecordsetClone property and its related links. I
believe it makes a copy of the recordset underlying the
current form, which I don't believe what you want to do--
you want to use a recordset duplicating the query
underlying the combo box.

Sorry I couldn't help.
Kevin Sprinkel

-----Original Message-----
Kevin,

I need actual code. I've tried some Bookmarking examples

I found but was
unable to get them to work. I don't have access to that

sample right now but
I recall it cloning the rs and using bookmark.

I've know VB well (not VBA though) and know basic

Access.



"Kevin Sprinkel" wrote:

You can do it on a Recordset based on the same SQL as

your
combo box.

HTH
Kevin Sprinkel

-----Original Message-----
I have a form that updates, via an unbound cbo, a

subform
that shows a
member's acct. balance. (the cbo is the member list).

I
want to automate an
end-of-month "fund transfer" by cycling through the

cbo
one member at a
time, check balance and run code based on the value

finishing with updating
the subform balance. I then want to cycle the cbo to

the
next member and
repeat until EOF. The cbo should update the subform

of
course. I'm pretty
confident I can do the "internal logic" but haven't

been
successful getting
the cbo to cycle.

Thanks in advance for any and all replies!
--
Ray Tweedale
All-around-nice-guy
.


.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recordset in subform based on field in parent form Lyn General Discussion 15 June 14th, 2004 03:10 PM
Writing a macro to change external links to manual updating in Excel 2000 John Wirt Links and Linking 5 February 16th, 2004 08:03 AM


All times are GMT +1. The time now is 11:37 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.