G
Guest
I am totally new to using a recordset clone, and perhaps this is not the
right application of it . . .
I have an application whose only form will contain a command button to start
the action. What it needs to do is to take a table and record-by-record,
check the rest of the records to see if two of the fields (AssetCode and
LocCode) are the same as the current record. If it finds such a record, it
needs to add the value of another field in the record, the Amount.
The only way I could think to do this was with a clone of the recordset,
because I somehow need to set a bookmark to the current record while it is
comparing the rest of the records. However, that isn't working at all, and
I'm guessing it is because I do not have a form containing the recordset, all
this is in a module. Specifically when I try and set the recordset clone,
the help file shows the syntax as "Set rstClone = me.recordsetclone" -- and
without a form, it doesn't know what "Me" is and doesn't like recordsetclone.
The app needs no form, it is not returning any records to be displayed --
instead it is saving them to tables which are then exported out to Excel
spreadsheets.
Will a recordsetclone not work without a form containing the recordset? Is
there a way of doing this that I'm not seeing, a way of setting a bookmark to
the current record while comparing the other records?
TIA for the help. I really don't know what specific group to put this in,
none of them seem to fit, but it looks like most of the "recordsetclone"
postings have been in this one. So if this seems to be the wrong group, I
apologize and would appreciate direction as to which one would be more
appropriate.
right application of it . . .
I have an application whose only form will contain a command button to start
the action. What it needs to do is to take a table and record-by-record,
check the rest of the records to see if two of the fields (AssetCode and
LocCode) are the same as the current record. If it finds such a record, it
needs to add the value of another field in the record, the Amount.
The only way I could think to do this was with a clone of the recordset,
because I somehow need to set a bookmark to the current record while it is
comparing the rest of the records. However, that isn't working at all, and
I'm guessing it is because I do not have a form containing the recordset, all
this is in a module. Specifically when I try and set the recordset clone,
the help file shows the syntax as "Set rstClone = me.recordsetclone" -- and
without a form, it doesn't know what "Me" is and doesn't like recordsetclone.
The app needs no form, it is not returning any records to be displayed --
instead it is saving them to tables which are then exported out to Excel
spreadsheets.
Will a recordsetclone not work without a form containing the recordset? Is
there a way of doing this that I'm not seeing, a way of setting a bookmark to
the current record while comparing the other records?
TIA for the help. I really don't know what specific group to put this in,
none of them seem to fit, but it looks like most of the "recordsetclone"
postings have been in this one. So if this seems to be the wrong group, I
apologize and would appreciate direction as to which one would be more
appropriate.