G
Guest
Form FaxTransmittal uses tblTransmittal Table
Table ---> tblTransmittal
combo box -->From_Name --->SELECT [From_Name], [From_Phone], [From_Fax] FROM
[tblProjectDirectoryFrom] ORDER BY [From_Name]
When selecting a name from Combo Box From_Name, I would like the From_Phone
and From_Fax Textbox to automatically update.
I have tried these following codes and the one from the Northwind example
and nothing has worked.
Private Sub From_Name_AfterUpdate()
tblTransmittal_From_Name = tblProjectDirectoryFrom_From_Name
tblTransmittal_From_Phone = tblProjectDirectoryFrom_From_Phone
tblTransmittal_From_Fax = tblProjectDirectoryFrom_From_Fax
End Sub
and
Private Sub cboFromName_AfterUpdate()
If Not IsNull(Me!cboFromName) Then
Me!cboFromName = Me!cboFromName.Column(1)
Me!FromPhoneTextbox = Me!cboFromName.Column(2)
Me!FromFaxTextbox = Me!cboFromName.Column(3)
End If
End Sub
Please help.
Table ---> tblTransmittal
combo box -->From_Name --->SELECT [From_Name], [From_Phone], [From_Fax] FROM
[tblProjectDirectoryFrom] ORDER BY [From_Name]
When selecting a name from Combo Box From_Name, I would like the From_Phone
and From_Fax Textbox to automatically update.
I have tried these following codes and the one from the Northwind example
and nothing has worked.
Private Sub From_Name_AfterUpdate()
tblTransmittal_From_Name = tblProjectDirectoryFrom_From_Name
tblTransmittal_From_Phone = tblProjectDirectoryFrom_From_Phone
tblTransmittal_From_Fax = tblProjectDirectoryFrom_From_Fax
End Sub
and
Private Sub cboFromName_AfterUpdate()
If Not IsNull(Me!cboFromName) Then
Me!cboFromName = Me!cboFromName.Column(1)
Me!FromPhoneTextbox = Me!cboFromName.Column(2)
Me!FromFaxTextbox = Me!cboFromName.Column(3)
End If
End Sub
Please help.