Chimp8471
Registered User.
- Local time
- Today, 08:46
- Joined
- Mar 18, 2003
- Messages
- 353
i have over the past few months been tryiing to get my head around the code behind access.......
i have struggled to self teach myself what very little i know, however i was wondering if anybody could point me to some form of literature that can explain what the code is doing.
for example what this does and how ??
Function DataMake()
Dim db As Database
Dim rs As Recordset
Dim i As Integer
Set db = CurrentDb()
Set rs = db.OpenRecordset("tblData")
For i = 30 To 1 Step -1
rs.AddNew
rs!dtmSample = Date - i
rs!strMaterialCode = "M2"
rs!intSurface = GetValue(80, 100, 100)
rs!intTestA1 = GetValue(8, 10, 10)
rs!intTestA2 = GetValue(0, 3, 5)
rs!intTestA3 = GetValue(1, 3, 5)
rs!intTestA4 = GetValue(6, 8, 10)
Cheers
Andy
i have struggled to self teach myself what very little i know, however i was wondering if anybody could point me to some form of literature that can explain what the code is doing.
for example what this does and how ??
Function DataMake()
Dim db As Database
Dim rs As Recordset
Dim i As Integer
Set db = CurrentDb()
Set rs = db.OpenRecordset("tblData")
For i = 30 To 1 Step -1
rs.AddNew
rs!dtmSample = Date - i
rs!strMaterialCode = "M2"
rs!intSurface = GetValue(80, 100, 100)
rs!intTestA1 = GetValue(8, 10, 10)
rs!intTestA2 = GetValue(0, 3, 5)
rs!intTestA3 = GetValue(1, 3, 5)
rs!intTestA4 = GetValue(6, 8, 10)
Cheers
Andy