Hello,
I have currently taken over a large upload process developed by the previous DB developer and am still learning the ADVANCED aspects of coding. I am trying to pull data from a Mass Input table and cycle each record one at a time through a set of coding to string the fields together. At this point I have it where the code pulls all data from this table all at once. I would like it where it pulls 1 record, flows through the process, than loops back to do the following record. Anyone have any suggestions, any help would be very much appreciated. Thanks in advance.
This is what I have so far:
rsTemp.Open _
Source:="Select * " & _
" From MASS_TEMP_INPUT;", _
ActiveConnection:=CurrentProject.Connection
With rsTemp
Do While Not .EOF
If Not IsNull(rsTemp) Then
strQuote = ""
End If
Set rsTemp = New ADODB.Recordset
rsTemp.Open _
Source:="INSERT INTO TEMP_INPUT" & _
" SELECT * " & _
" FROM MASS_TEMP_INPUT;", _
ActiveConnection:=CurrentProject.Connection
DoCmd.OpenQuery "DEL_TEMP_02", acViewNormal
DoCmd.OpenQuery "DEL_TEMP_03", acViewNormal
DoCmd.OpenQuery "DEL_TEMP_04", acViewNormal
DoCmd.OpenQuery "QRY_01_LIC", acViewNormal
DoCmd.OpenQuery "QRY_02_LOA", acViewNormal
DoCmd.OpenQuery "QRY_03_APT", acViewNormal
Call CreateLicenseString
Call CreateApptOnlyString
Call PostRecord
.MoveNext
Loop
End With
End If
I have currently taken over a large upload process developed by the previous DB developer and am still learning the ADVANCED aspects of coding. I am trying to pull data from a Mass Input table and cycle each record one at a time through a set of coding to string the fields together. At this point I have it where the code pulls all data from this table all at once. I would like it where it pulls 1 record, flows through the process, than loops back to do the following record. Anyone have any suggestions, any help would be very much appreciated. Thanks in advance.
This is what I have so far:
rsTemp.Open _
Source:="Select * " & _
" From MASS_TEMP_INPUT;", _
ActiveConnection:=CurrentProject.Connection
With rsTemp
Do While Not .EOF
If Not IsNull(rsTemp) Then
strQuote = ""
End If
Set rsTemp = New ADODB.Recordset
rsTemp.Open _
Source:="INSERT INTO TEMP_INPUT" & _
" SELECT * " & _
" FROM MASS_TEMP_INPUT;", _
ActiveConnection:=CurrentProject.Connection
DoCmd.OpenQuery "DEL_TEMP_02", acViewNormal
DoCmd.OpenQuery "DEL_TEMP_03", acViewNormal
DoCmd.OpenQuery "DEL_TEMP_04", acViewNormal
DoCmd.OpenQuery "QRY_01_LIC", acViewNormal
DoCmd.OpenQuery "QRY_02_LOA", acViewNormal
DoCmd.OpenQuery "QRY_03_APT", acViewNormal
Call CreateLicenseString
Call CreateApptOnlyString
Call PostRecord
.MoveNext
Loop
End With
End If