[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

09/18/2009 at 05:42AM PDT, ID: 24743008
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

Change MS Access Label caption using VBA

Asked by wefarmer3 in Visual Basic Programming, Access Forms, Microsoft Access Database

Tags: Microsoft Access 2007

I have a form that has 4 labels (LB1, LB2, LB3, LB4).  When the form opens a Macro launches a VBA Module that has 4 parts (DS1, DS2, DS3, DS4).  Currently as each part completes a MsgBox opens saying "DS1 Complete", then "DS2 Complte," "DS3 Complete," "DS4 Complete."  I would like to remove the MsgBoxes and just have the caption of the label change.  I am not sure if this is possible and if it is how to start the process.  I have attached one of the parts as an example of what the code is doing and to show where I would like to change the code from displaying a msgbox to changing the caption on the label.  The form that has the labels is titled "Update."
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
Function prevent_null()
Dim rs1 As Recordset
Dim rs2 As Recordset
Dim rs3 As Recordset
Dim rs4 As Recordset
Dim n As String
Dim x As Long
Dim v As String
Dim p As String
Dim r As String
 
 
p = "-"
x = 0
n = ""
Set rs1 = CurrentDb.OpenRecordset("DS0", dbOpenDynaset)
rs1.MoveFirst
With rs1
    Do Until .EOF
        If IsNull(!RTC_ILAM) Then
            .Edit
            !RTC_ILAM = p
            .Update
        End If
        If IsNull(!Manager) Then
            .Edit
            !Manager = p
            .Update
        End If
        If IsNull(!FollowUp) Then
            .Edit
            !FollowUp = p
            .Update
        End If
        If IsNull(!Saved) Then
            .Edit
            !Saved = p
            .Update
        End If
        If IsNull(!LU) Then
            .Edit
            !LU = p
            .Update
        End If
        If IsNull(!UpdatedBy) Then
            .Edit
            !UpdatedBy = p
            .Update
        End If
        If IsNull(!ECCD) Then
            .Edit
            !ECCD = p
            .Update
        End If
        If IsNull(!Design_Status) Then
            .Edit
            !Design_Status = p
            .Update
        End If
        If IsNull(!Assignment_Status) Then
            .Edit
            !Assignment_Status = p
            .Update
        End If
        If IsNull(!EWO) Then
            .Edit
            !EWO = p
            .Update
            .MoveNext
            Else
            .MoveNext
        End If
    Loop
End With
MsgBox ("DS0 Null Comp")
[+][-]09/18/09 05:51 AM, ID: 25365383

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/18/09 06:41 AM, ID: 25365815

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/18/09 06:52 AM, ID: 25365931

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/18/09 06:55 AM, ID: 25365966

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/18/09 06:58 AM, ID: 25366000

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/18/09 07:03 AM, ID: 25366050

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/18/09 07:15 AM, ID: 25366168

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/18/09 07:19 AM, ID: 25366220

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/18/09 07:28 AM, ID: 25366318

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/18/09 08:47 AM, ID: 25367172

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/18/09 08:49 AM, ID: 25367209

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/19/09 10:09 AM, ID: 25373707

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Basic Programming, Access Forms, Microsoft Access Database
Tags: Microsoft Access 2007
Sign Up Now!
Solution Provided By: Bellone
Participating Experts: 3
Solution Grade: A
 
 
 
Loading Advertisement...
20091111-EE-VQP-91 - Hierarchy / EE_QW_3_20080625