Music is no longer an expression of the soul or the work of an artist; it's a 'product' that is manufactured, packaged, catalogued, distributed, managed, regulated, and above all sold!
2) TextBox.Text = vbNullString .. waarom niet gewoon TextBox.Text = ""?
DATA ENTRY op Yes zetten....
Kosste mij btw 10 seconden met de wizard van Access...
[ Voor 33% gewijzigd door BtM909 op 10-04-2003 11:21 ]
Ace of Base vs Charli XCX - All That She Boom Claps (RMT) | Clean Bandit vs Galantis - I'd Rather Be You (RMT)
You've moved up on my notch-list. You have 1 notch
I have a black belt in Kung Flu.
Hij geeft een 'Expected End Of Sub' error en verwijst dan naar de Form_load regel....henkleerssen schreef op 10 April 2003 @ 11:19:
1) debuggen kan ook in Access (F9 op sub form_load lijn).. waar precies in form_load zie je de fout?
2) TextBox.Text = vbNullString .. waarom niet gewoon TextBox.Text = ""?
Music is no longer an expression of the soul or the work of an artist; it's a 'product' that is manufactured, packaged, catalogued, distributed, managed, regulated, and above all sold!
Ace of Base vs Charli XCX - All That She Boom Claps (RMT) | Clean Bandit vs Galantis - I'd Rather Be You (RMT)
You've moved up on my notch-list. You have 1 notch
I have a black belt in Kung Flu.
Dat zou het ook maar zo kunnen zijn.. Ruidasilva.. luister naar btm...BtM909 schreef op 10 april 2003 @ 11:20:
Dat is een eigenschap van je Formulier
DATA ENTRY op Yes zetten....
edit:
Kosste mij btw 10 seconden met de wizard van Access...
1. Je kunt geen Function definiëren binnen een Sub
2. vbNullString=Niet hetzelfde als een tekenreeks zonder gegevens (""); wordt gebruikt voor het oproepen van externe procedures (Access Help)
3. In de For Each-loop moet je de Text- en ComboBoxen aanroepen met de naam van de loop.
4. De For Each-loop moet worden afgesloten met Next
Wel goed:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| Public Function ClearControls()
Dim ctrl As Control
Dim temp As String
For Each ctrl In Controls
Select Case TypeName(ctrl)
Case "TextBox"
ctrl.Text = Empty
Case "ComboBox"
ctrl.ListIndex = -1
End Select
Next ctrl
End Function
Private Sub Form_Load()
ClearControls
End Sub |
Ik heb dit niet gecontroleerd, maar je kunt zo in ieder geval verder, hoop ik.
a horse! a horse! my kingdom for a horse! (exeunt)
[got.profile] | [t.net.profile] | [specs]
Dat is een eigenschap van je Formulier
DATA ENTRY op Yes zetten....
Bedankt jongens!!!!!!henkleerssen schreef op 10 April 2003 @ 11:25:
[...]
Dat zou het ook maar zo kunnen zijn.. Ruidasilva.. luister naar btm...
Het werkt, en ik maar denken dat ik een VBscript moest maken
Music is no longer an expression of the soul or the work of an artist; it's a 'product' that is manufactured, packaged, catalogued, distributed, managed, regulated, and above all sold!
Dit heb ik er ook ingegooid en dit werkt ook! Dus ik kan kiezen, wat een luxe....KingRichard schreef op 10 April 2003 @ 11:28:
Vier fouten volgens mij:
1. Je kunt geen Function definiëren binnen een Sub
2. vbNullString=Niet hetzelfde als een tekenreeks zonder gegevens (""); wordt gebruikt voor het oproepen van externe procedures (Access Help)
3. In de For Each-loop moet je de Text- en ComboBoxen aanroepen met de naam van de loop.
4. De For Each-loop moet worden afgesloten met Next
Wel goed:
code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21Public Function ClearControls() Dim ctrl As Control Dim temp As String For Each ctrl In Controls Select Case TypeName(ctrl) Case "TextBox" ctrl.Text = Empty Case "ComboBox" ctrl.ListIndex = -1 End Select Next ctrl End Function Private Sub Form_Load() ClearControls End Sub
Ik heb dit niet gecontroleerd, maar je kunt zo in ieder geval verder, hoop ik.
Music is no longer an expression of the soul or the work of an artist; it's a 'product' that is manufactured, packaged, catalogued, distributed, managed, regulated, and above all sold!
Ace of Base vs Charli XCX - All That She Boom Claps (RMT) | Clean Bandit vs Galantis - I'd Rather Be You (RMT)
You've moved up on my notch-list. You have 1 notch
I have a black belt in Kung Flu.
Nee, het werkt gewoon...BtM909 schreef op 10 April 2003 @ 11:31:
Gooit deze code je laatste record niet weg.... Navigeer eens naar een andere record?
Music is no longer an expression of the soul or the work of an artist; it's a 'product' that is manufactured, packaged, catalogued, distributed, managed, regulated, and above all sold!