I know MS Access very well, but am fairly new to writing vba.
This one has me completely confused. Here is my task (written in English), not vba:
[FONT="]‘Variables that already exist in the table I want to loop through are:[/FONT]
[FONT="]‘”Fahrenheit” and “Time”[/FONT]
[FONT="] [/FONT]
[FONT="]'Create new variables[/FONT]
[FONT="] 'Dim startTime As Date 'Declare start time[/FONT]
[FONT="] 'Dim endTime As Date 'Declare end time[/FONT]
[FONT="] 'Dim result As Integer 'Declare result in minutes[/FONT]
[FONT="] [/FONT]
[FONT="] 'IF Fahrenheit in row1 >=14[/FONT]
[FONT="] 'THEN make startTime = Time from row1[/FONT]
[FONT="] 'IF Fahrenheit in row2 >=14[/FONT]
[FONT="] 'THEN go to next record[/FONT]
[FONT="] 'Keep looping through each record until the answer is NO[/FONT]
[FONT="] 'THEN make endTime = Time field in the first row where NO is the answer[/FONT]
[FONT="] 'THEN subtract endTime from startTime = result[/FONT]
[FONT="] 'IF the result is <60 minutes, move on to the next row and begin the loop process again.[/FONT]
[FONT="] 'IF the result is >=60 minutes save all rows from startTime to endTime plus result in a table? [/FONT]
If you can give me direction on this or websites to view, I'd appreciate it.
This one has me completely confused. Here is my task (written in English), not vba:
[FONT="]‘Variables that already exist in the table I want to loop through are:[/FONT]
[FONT="]‘”Fahrenheit” and “Time”[/FONT]
[FONT="] [/FONT]
[FONT="]'Create new variables[/FONT]
[FONT="] 'Dim startTime As Date 'Declare start time[/FONT]
[FONT="] 'Dim endTime As Date 'Declare end time[/FONT]
[FONT="] 'Dim result As Integer 'Declare result in minutes[/FONT]
[FONT="] [/FONT]
[FONT="] 'IF Fahrenheit in row1 >=14[/FONT]
[FONT="] 'THEN make startTime = Time from row1[/FONT]
[FONT="] 'IF Fahrenheit in row2 >=14[/FONT]
[FONT="] 'THEN go to next record[/FONT]
[FONT="] 'Keep looping through each record until the answer is NO[/FONT]
[FONT="] 'THEN make endTime = Time field in the first row where NO is the answer[/FONT]
[FONT="] 'THEN subtract endTime from startTime = result[/FONT]
[FONT="] 'IF the result is <60 minutes, move on to the next row and begin the loop process again.[/FONT]
[FONT="] 'IF the result is >=60 minutes save all rows from startTime to endTime plus result in a table? [/FONT]
If you can give me direction on this or websites to view, I'd appreciate it.