Cliff67
Registered User.
- Local time
- Today, 12:00
- Joined
- Oct 16, 2018
- Messages
- 190
Hello All
I've got a weird issue that I've been banging my head against for the last few hours and it's driving me nuts.
So I have 2 forms (Tickets and RMA forms) that call a single form Frm_AmendDate. this form uses a flag set by the other 2 forms to determine if you are changing the Ticket or the RMA.
the form is called using DoCmd.OpenForm "Frm_AmendDate", acNormal, "", "", , acNormal
there are other bits that popular some text boxes for the amend process.
The issue I'm having now is when called from the Tickets form the combo box looks like this
when called from the RMA screen using the same call method you get this
When I open the form is programmatically change labels and change the Row Source of the Combo box.
No where do I set the Font colour except in the design. I've even deleted the combox box and copied the Status box above.
here is the Form_Load Code:
Any insight would be greatly appreciated
Cliff
I've got a weird issue that I've been banging my head against for the last few hours and it's driving me nuts.
So I have 2 forms (Tickets and RMA forms) that call a single form Frm_AmendDate. this form uses a flag set by the other 2 forms to determine if you are changing the Ticket or the RMA.
the form is called using DoCmd.OpenForm "Frm_AmendDate", acNormal, "", "", , acNormal
there are other bits that popular some text boxes for the amend process.
The issue I'm having now is when called from the Tickets form the combo box looks like this
when called from the RMA screen using the same call method you get this
When I open the form is programmatically change labels and change the Row Source of the Combo box.
No where do I set the Font colour except in the design. I've even deleted the combox box and copied the Status box above.
here is the Form_Load Code:
Code:
If TSFlag Then
Me.Caption = "TSR Status Date Amendment"
Me.CmbStatus.RowSource = "SELECT Tbl_Status.StatusID, Tbl_Status.StatusDesc FROM Tbl_Status;"
Me.CmbStatus.Requery
Me.Label1.Caption = "TSR"
Me.LblAmend.Caption = "Amend TSR"
Me.LblLink.Caption = "Amend RMA Link"
Me.CmdAmendLink.Caption = "Amend RMA Link"
Sql = "SELECT Tbl_Repair_Main.ID, Tbl_Repair_Main.RMANo, Tbl_Repair_Main.BillComp " & _
"From Tbl_Repair_Main ORDER BY Tbl_Repair_Main.[RMANo] DESC;"
Me.CmbLinkSelect.RowSource = Sql
Me.CmbLinkSelect.Requery
Me.AmendedDate.SetFocus
ElseIf RMAFlag Then
Me.Caption = "RMA Status Date Amendment"
Me.CmbStatus.RowSource = "SELECT Tbl_RMA_Status.StatusID, Tbl_RMA_Status.StatusDesc FROM Tbl_RMA_Status; "
Me.CmbStatus.Requery
Me.Label1.Caption = "RMA"
Me.LblAmend.Caption = "Amend RMA"
Me.LblLink.Caption = "Amend TSR Link"
Me.CmdAmendLink.Caption = "Amend TSR Link"
Sql = "SELECT Tbl_Tickets.ID, Tbl_Tickets.Ticket_Number, Tbl_Tickets.Company " & _
"From Tbl_Tickets ORDER BY Tbl_Tickets.[Ticket_Number] DESC;"
Me.CmbLinkSelect.RowSource = Sql
Me.CmbLinkSelect.Requery
Me.AmendedDate.SetFocus
End If
Any insight would be greatly appreciated
Cliff