This is the actual result: The report has 2 pages (the second label should not be printed on page 1 because ctPageHeader <> ctTrainingtypeHeader):
on Page 1
ctPageHeader = 1
ctTrainingtypeHeader = 1 lblWarningMsg
ctTrainingTypeHeader = 2...
I have a Label field (named lblWarningMsg) in my Header of the report, I want this Label field printed once on 1st header on every page, suppress the label field if the 2nd header appear on the same page.
I have 2 text fields called ctTrainingTypeHeader and ctPageHeader
both have the Control...
Thank you for your advice. For now, this table is only capturing that relationship. This database is going to track the relationship, for new comers to learn the business among all the companies that we are dealing with.
My original thinking is to have 2 tables to do the relationship among each others
In the 2 tables: I would have the following key fields
tblCompanyInfo
CompanyID Primary Key
Name
Address
etc.
tblCompanyRelationship
CompanyID Primary Key (a CompanyID)
RelatedCompanyID Primary Key (a...
I see a little light, but I want to digest further with the related posts.
on "You have different Categories - Suppliers, Distributers, Manufacturers."
Can I add a Category field in order to combine all the Category tables into one table? the Category field will capture whether this record for...
I am looking at the posts to figuring out how a company can be referencing among other companies.
How did you link the 5 tables to get the referencing among each other? Can I have the first 3 catogory table into one table because it have the same fields, what is the advantage to separate them...
I am seeking advice on relationship on a Company Profile Database. The objective is to do minimum data entry to link the all companies which have relationship among others.
Initially, I have two tables: One called tblCompanyInfo to store the company name, address, and service provided...
My AfterUpdate event in subform, I want to call the OnCurrent event on Main Form. I tried these codes
Call Forms![MainForm].OnCurrent
or
Call Forms.[MainForm].Form.OnCurren
obviously, I am not doing right. any suggestions? Thanks
all of suddenly, I got this error 'Invalid procedure call or argument' when I click on a few preview button on reports. The preview button codes are just the standard codes setup with the wizard, and I added the stFilter.
Private Sub cmdPreviewRpt_Click()
On Error GoTo Err_cmdPreviewRpt_Click...
Thank you again hdookom and lameid for your reply.
I took your advice to add a calculation field on report's record source. This calculation field use a function to check all the conditions, the result will return 0, 1, & 2 for each record. I sum up on the headergroup, and the format will be...
Thank you hdookom and lameid for your reply.
Hdookon. Here is my GroupHeader on_format
Private Sub GroupHeader1_Format(Cancel As Integer, FormatCount As Integer)
If Sum(IsNull(Me.txtCountRed), 0, 1) > 0 Then
Me.txtTrainingName.BorderColor = vbRed
Else
Me.txtTrainingName.BorderColor...
Thanks for the ideas...I tried many things and I have half way through.
I added a unbound field, this field turns to 1 if Me.txtCurr_Version.BorderColor = vbRed, otherwise, stay 0.
Now, how can i sum up this unbound field
I used
=Sum(txtCountRed)
That doesn't work.
I have 12 ‘If’ statements to check on 16 fields on Detail section, then I format one field (called txtCurr_Version) based on the 12 ‘If’ statements. This is one of ‘if’ statement on the Detail_Format.
If IsNull(Me.txtRevision_num) Then
Me.txtCurr_Version.BorderStyle = 1...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.