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  

using Control to populate combobox



 
 
Thread Tools Display Modes
  #1  
Old March 29th, 2010, 12:25 PM posted to microsoft.public.access.forms
Ingo Hanke
external usenet poster
 
Posts: 2
Default using Control to populate combobox

Dear,

I have a form where i have to populate diferent comboboxes at diferent
stages with data from a seperate database.
Im trying to write a Function that would easally repeate the task, the
main problem is specifeing what combobox to use. here is a part of my
coding


Public Sub LoadCB(cbName As Control, SelectionString As String)
cbCount = 0
Set rstLoadCB = VMSDatabase.OpenRecordset(SelectionString)
With rstLoadCB

.MoveLast
cbCount = .Counter
.MoveFirst
If TypeName(CB) = cbName Then

End If

Next CB


End With
Set rstLoadCB = Nothing
End Sub
 




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


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