G
Guest
Ok I am really frustrated but here goes.
I have a Macro which I have managed to read a select list of records based
on a query. Simple: Read a record, change the values of 2 fields (boolean);
one to YES and one to NO. No biggie! The problem is that the macro runs
thru all the records (IT DOES cause I "STEPPED" through it with the MACRO
SINGLE STEP function,) but ONLY the 1st record is recorded with the changes!
WHAT THE FUDGE IS THE PROBLEM WITH ACCESS?
Some points of info.
1) I am obliged to change the value of the field (SETVALUE) through the
variable on the form bound to the macro because when I do SETVALUE ITEM to
the query variable it gives me an error! WHY? I DUNNO! (ERROR -> THE OBJECT
DOESN'T CONTAIN THE AUTOMATION OBJECT...<query name>)
2) I tried adding in a REQUERY and it still only updates the 1st record.
3) I removed the REQUERY and put in 3 statements
a)CLOSE QUERY
b)OPEN QUERY
c)GOTO RECORD FIRST
Only 1st record gets updated.
4) Tried putting in a GOTO NEXT RECORD after the SETVALUE statements in case
it required going to a next record for it force an update. ONLY 1ST RECORD
GETS UPDATED.
ANYONE NOTICING A FREAKIN PATTERN????
WHy is ACCESS SUCH A PAIN IN THE BUTT???
Anyone know why ONLY the 1st record gets updated and how to fix this
problem???
I have a Macro which I have managed to read a select list of records based
on a query. Simple: Read a record, change the values of 2 fields (boolean);
one to YES and one to NO. No biggie! The problem is that the macro runs
thru all the records (IT DOES cause I "STEPPED" through it with the MACRO
SINGLE STEP function,) but ONLY the 1st record is recorded with the changes!
WHAT THE FUDGE IS THE PROBLEM WITH ACCESS?
Some points of info.
1) I am obliged to change the value of the field (SETVALUE) through the
variable on the form bound to the macro because when I do SETVALUE ITEM to
the query variable it gives me an error! WHY? I DUNNO! (ERROR -> THE OBJECT
DOESN'T CONTAIN THE AUTOMATION OBJECT...<query name>)
2) I tried adding in a REQUERY and it still only updates the 1st record.
3) I removed the REQUERY and put in 3 statements
a)CLOSE QUERY
b)OPEN QUERY
c)GOTO RECORD FIRST
Only 1st record gets updated.
4) Tried putting in a GOTO NEXT RECORD after the SETVALUE statements in case
it required going to a next record for it force an update. ONLY 1ST RECORD
GETS UPDATED.
ANYONE NOTICING A FREAKIN PATTERN????
WHy is ACCESS SUCH A PAIN IN THE BUTT???
Anyone know why ONLY the 1st record gets updated and how to fix this
problem???