To be honest my source is got from search engine :) . Find the correct keyword of my problem, then search the answer from search engine.
http://bytes.com also my reference if i have some difficulties.
And I think the tips from http://allenbrowne.com/tips.html can be your source too.
User Profile
Collapse
-
is below code give you solution :
Code:Private Sub chkBlueLight_AfterUpdate() dim i as integer controlName = "BlueLight" If Me.chkBlueLight = True Then for i=1 to 27 step 1 Me.Controls(controlName & Format(i, "00")).Visible = True next i Else for i=1 to 27 step 1 Me.Controls(controlName & Format(i, "00")).Visible
Leave a comment:
-
Thanks to PhilOfWalton and NeoPa, your sharing is opening my mind to have another option of my previous code.
Best Regards,
Access Newbie :)Leave a comment:
-
What i get from Yoel Duady question is to prevent the User modify/change value in the combobox. If it's so, why don't you use LimitToList property.
Set LimitToList in the combobox properties to YES.
Sorry if it's not giving you a solution.Leave a comment:
-
NeoPa...your code above is not working to me. I dont know why :)Leave a comment:
-
upgraded a lil bit:
Code:Option Compare Database Dim iSQL As String Private Sub Command7_Click() GetEmpName ("m") End Sub Function GetEmpName(myLetter As String) iSQL = "SELECT EmpName FROM tblEmployee WHERE [EmpName] LIKE '" & myLetter & "*' " Me.lstEmpName.RowSource = iSQL Me.lstEmpName.Requery End Function
Leave a comment:
-
-
Handler for multi Command Button, to make the code shorter
Hi All...
I have 27 command buttons (it's alphabet) to get Employee Name based on First Letter and to display it on List Box.
Actually i got how to do it, but the code would be too long.
Could be somebody here can help me to make the code shorter. The code is like below:
Code:Private Sub Command2_Click() Dim crSQL As String crSQL = "SELECT EmpName FROM tblEmployee WHERE [EmpName] LIKE
-
-
-
Append Query
Can somebody help me to get Append Query (by SQL view/SQL Design) from these tables:
Code:tblEmployee EmpID Name Group E1 John A E2 Mark A E3 Nick B E4 Alex B tblRawRotation Month Group Wk1 Wk2 Wk3 Wk4 Jan A D N O O Jan B O O D N Feb A O O D N Feb B D N O O I have made a table with the layout like this: tblShiftRotation EmpID Month Group Wk1
Last edited by Rabbit; Feb 19 '16, 05:34 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data. -
No activity results to display
Show More
Leave a comment: