A
Arvi Laanemets
Hi
I have a form fmDevices with a continous subform fmTransactions on it.
Form fmDevices is based on table tblDevices: DeviceID, RegDate, DevGroup,
....
Form fmTransactions is based on table tblTransactions: TransactID,
TransactDate, DeviceID, Account, TabN.
TblDevices has 2 index fields: DeviceID (unique master key) and DevGroup
(not unique)
TblTransactions fields are all indexed except TransactDate, TransactID is
only field having unique index as a master key.
All non-unique indexes in both tables are used to set relationships to other
tables (DeviceID is used to set one-to-many relation between tblDevices and
tblTransactions).
My problem is, that when user selects a device in form fmDevices,
transactions for this device in subform fmTransactions are not always
ordered by transaction date (by TransactID really at moment, but user
doesn't see it, and practically there is little difference). In
fmTransaction properties OrderBy=TransactDate, but this doesn't have any
effect at all!
How can I force the subform always to be ordered by TransactDate?
Thanks in advance!
I have a form fmDevices with a continous subform fmTransactions on it.
Form fmDevices is based on table tblDevices: DeviceID, RegDate, DevGroup,
....
Form fmTransactions is based on table tblTransactions: TransactID,
TransactDate, DeviceID, Account, TabN.
TblDevices has 2 index fields: DeviceID (unique master key) and DevGroup
(not unique)
TblTransactions fields are all indexed except TransactDate, TransactID is
only field having unique index as a master key.
All non-unique indexes in both tables are used to set relationships to other
tables (DeviceID is used to set one-to-many relation between tblDevices and
tblTransactions).
My problem is, that when user selects a device in form fmDevices,
transactions for this device in subform fmTransactions are not always
ordered by transaction date (by TransactID really at moment, but user
doesn't see it, and practically there is little difference). In
fmTransaction properties OrderBy=TransactDate, but this doesn't have any
effect at all!
How can I force the subform always to be ordered by TransactDate?
Thanks in advance!