Yea. I got all that, and I am an experienced Access Developer. What I am
trying to do is to create in InMemory (Disconnected Recordset) and bind an
Access frome (DataSheet) to it.
The Plan is to create a recordset
Set rstTempTestItems = New ADODB.Recordset ' Create new
Recordset in Mem
With rstTempTestItems
With .Fields
.Append "ItemID", adBigInt
.Append "ItemDescr", adVarChar, 50
.Append "TargetFilename", adVarChar, 255
End With
.CursorType = adOpenDynamic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open
End With
Then add records to the tem recordset from the Database.
rstTempTestItems.AddNew _
Array("ItemID", "ItemDescr", "TargetFilename"), _
Array(Value1, .Value2, .Value3)
Then use the recordset as the Recordset for the Form
me.recordset = rstTempTestItems
Access complains about the lack of an active connection and bails. Well
that was the whole point, binding the form to a connectionless recordset.
What I am trying to avoid is using a temp table as the object the form is
bound to as this is a multi user database that will be used in a multi user
environment (Citrix) where MANY people will be accessing the SAME front end
database. I have done this before using a temp table but, invariably this
leads to orphaned records and database bloat. I am just looking for a
better way.
Ron W