Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

warning message

Status
Not open for further replies.

pooterpooter

Technical User
Oct 7, 2005
11
BG
In my report called rptStockFlow i have the products
underlined with red if balance is not equal to in - out:


Const conNormal = 400
Const conHeavy = 900 ' exra bold

Private Sub Detail_Format(Cancel As Integer, FormatCount As

Integer)
If Me![balance] <> Me!In - Me!Out Then
Me!balance.FontWeight = conHeavy
Me!balance.ForeColor = 32768
Else
Me!balance.FontWeight = conNormal
Me!balance.ForeColor = 0
End If
If Me![balance] <> Me!OnStore Then
Me!OnStore.FontWeight = conHeavy
Me!OnStore.ForeColor = 255
Else
Me!OnStore.FontWeight = conNormal
Me!OnStore.ForeColor = 0
End If
End Sub


is it possible in the Onopen event of the report to create
some code that sends a warning message on the screen,that something is
wrong with the balance of the goods ?



 
put msgbox "something is wrong mister!" in the if statement where balance is less than in - out

--------------------
Procrastinate Now!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top