O
OssieMac
I have a continuous form which generates a list of records containing blank
fields that still need to be completed by the user.
The user Double Clicks the Product Id on the continuous form and the record
Product Id is copied to the Product Details (editing form) and the record is
found and displayed for the user to complete the blank fields. (Relatively
simple code posted below)
It all works fine but with one problem. The users keep loosing their place
on the continuous form resulting in wasted time locating the next record,
selecting a record already fixed or even skipping a record altogether.
What I would like to do is highlight each record as it is double clicked. (I
don’t care whether it is Bold, Font color or background color. I cannot find
any way of doing this because it changes the format for the entire column on
the continuous form.
It will be greatly appreciated if anyone can help me with a solution?
Alternatively, if the experts believe that it can't be done then please
answer accordingly because that will be appreciated also because at least I
then know to stop wasting time on it.
Private Sub Product_Id_DblClick(Cancel As Integer)
Dim tempProdId As Long
tempProdId = Me.Product_Id
DoCmd.OpenForm "Product Details"
'Assign the ProdId which was double clicked to the
'ProductNumber field on Product Details form.
Forms![Product Details].ProductNumber = tempProdId
Forms![Product Details].ProductNumber.SetFocus
'Call the event in Product Details which in turn
'calls the find routine in Product Details
Forms![Product Details].ProductNumber_AfterUpdate
End Sub
fields that still need to be completed by the user.
The user Double Clicks the Product Id on the continuous form and the record
Product Id is copied to the Product Details (editing form) and the record is
found and displayed for the user to complete the blank fields. (Relatively
simple code posted below)
It all works fine but with one problem. The users keep loosing their place
on the continuous form resulting in wasted time locating the next record,
selecting a record already fixed or even skipping a record altogether.
What I would like to do is highlight each record as it is double clicked. (I
don’t care whether it is Bold, Font color or background color. I cannot find
any way of doing this because it changes the format for the entire column on
the continuous form.
It will be greatly appreciated if anyone can help me with a solution?
Alternatively, if the experts believe that it can't be done then please
answer accordingly because that will be appreciated also because at least I
then know to stop wasting time on it.
Private Sub Product_Id_DblClick(Cancel As Integer)
Dim tempProdId As Long
tempProdId = Me.Product_Id
DoCmd.OpenForm "Product Details"
'Assign the ProdId which was double clicked to the
'ProductNumber field on Product Details form.
Forms![Product Details].ProductNumber = tempProdId
Forms![Product Details].ProductNumber.SetFocus
'Call the event in Product Details which in turn
'calls the find routine in Product Details
Forms![Product Details].ProductNumber_AfterUpdate
End Sub