By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,966 Members | 1,913 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,966 IT Pros & Developers. It's quick & easy.

strange problem

P: n/a

i have a form with a subform, there is a command button in the subform:
here is the code:

Private Sub CBfrmOtherXSubNextSale_Click()
On Error GoTo Err_CBfrmOtherXSubNextSale_Click

Dim CurrentItemID As String
Set MainSoldX = Forms!FrmOtherX.Form
CurrentItemID = MainSoldX!iItemID

If AV0 < 0 Or AV1 < 0 Or AV2 < 0 Or AV3 < 0 Or AV4 < 0 Or AV5 < 0 Then
MsgBox "You Have Listed More Items Than you Have on Hand, Adjust your
listing!", vbOKOnly

DoCmd.OpenForm "frmMainListing", , , "iItemID = " & CurrentItemID & ""
GoTo Exit_CBfrmOtherXSubNextSale_Click
End If

DoCmd.GoToRecord , , acNewRec

Exit Sub

MsgBox Err.Description
Resume Exit_CBfrmOtherXSubNextSale_Click

End Sub
as you can see when i click the button the code verigyes if certain
numbers are negative, closes the form to avoid record locking issues
and opens another form based on a criteria. . . .
here is my problem, when the form opens conditional formating does not
this code does not work, i tried to put it in form activate, open,
current, got focus:

Adjust0.Transparent = True
If Ir0av < 0 Then
Adjust0.Transparent = False
End If

any ideas???

Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
i got it - ignore my posting

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.