Honestmath
Technical User
hey,
this problem has me baffled.
i have a table i add a record to using .AddNew . after i do the .Update, i expect to see the new record in the table. i don't. i run this aggregate query that depends on the newly inserted value, and its wrong because the value isn't being added yet.
[bold]
Set rsDB = Me.Recordset
rsDB.AddNew
'put in new rows
rsDB.Update
Me.Requery ' only as a last resort
call RunAggregateQuery
Me.Requery
Me.Bookmark = rsDB.LastModified
[/bold]
on the line 'call RunAggregateQuery' i need the table to be update. i look at the table, and it doesn't update until the line after, Me.Requery (the form is linked to a query that references the table).
why doesn't the table update immediately on the .Update?? how do i force it to update? why would a requery update a table anyway?
thnx so much, i'm really baffled on this one.
math
this problem has me baffled.
i have a table i add a record to using .AddNew . after i do the .Update, i expect to see the new record in the table. i don't. i run this aggregate query that depends on the newly inserted value, and its wrong because the value isn't being added yet.
[bold]
Set rsDB = Me.Recordset
rsDB.AddNew
'put in new rows
rsDB.Update
Me.Requery ' only as a last resort
call RunAggregateQuery
Me.Requery
Me.Bookmark = rsDB.LastModified
[/bold]
on the line 'call RunAggregateQuery' i need the table to be update. i look at the table, and it doesn't update until the line after, Me.Requery (the form is linked to a query that references the table).
why doesn't the table update immediately on the .Update?? how do i force it to update? why would a requery update a table anyway?
thnx so much, i'm really baffled on this one.
math