Adamantium42
New member
- Local time
- Today, 09:29
- Joined
- Jul 30, 2013
- Messages
- 4
Hello.
I am looking for a bit of guidance.. I am trying to learn VBA code with Access and despite having a nice big book there is something I am struggling with.
The overall goal is to hide a whole line of a report using "canshrink" on a series of boxes, some of which are numbers and some that aren't. Some will be blank when the data is loaded into the form and I want these to make the rest of the form adjust.
I was just wondering if anyone can point out what's wrong with that code above? It's the first piece I've tried writing and I'm finding it hard to find anywhere that lists specific rules when writing VBA. I am under the impression that I don't need an "else" or anything like that.
I also attached a .zip file with the image inside of it.
Many thanks.
I am looking for a bit of guidance.. I am trying to learn VBA code with Access and despite having a nice big book there is something I am struggling with.
The overall goal is to hide a whole line of a report using "canshrink" on a series of boxes, some of which are numbers and some that aren't. Some will be blank when the data is loaded into the form and I want these to make the rest of the form adjust.
Code:
Private Sub Form_Load()
If Me.Label33.Value = "<1" Then
Me.Label34.Caption = "Nothing."
End If
End Sub
I was just wondering if anyone can point out what's wrong with that code above? It's the first piece I've tried writing and I'm finding it hard to find anywhere that lists specific rules when writing VBA. I am under the impression that I don't need an "else" or anything like that.
I also attached a .zip file with the image inside of it.
Many thanks.