Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

I want to update a access field on a from from another form

I have an access form (see attached) that I want to update a field from a popup form when the user double clicks on his/her selection.
SignIn.docx
0
shieldsco
Asked:
shieldsco
  • 6
  • 5
1 Solution
 
Rey Obrero (Capricorn1)Commented:
what is the RowSource of the combo box Provider Name in the Login form?

you can use the double click event of the field FullName from the form Service.. to select the value from the Provider Name combo box, but this will depend on the RowSource of the combo box.
0
 
shieldscoAuthor Commented:
The RowSource of the combo box Provider Name is SELECT [tblEmp].[FullName], [tblEmp].[Service] FROM tblEmp ORDER BY [FullName];--  I would lke to give the user the option to select from the combo box or the from the form Service
0
 
Rey Obrero (Capricorn1)Commented:

try this, change object/control names accordingly

private sub FullName_DblClick(Cancel As Integer)

Forms!Login.cboProviderName=Me.FullName

end sub
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
shieldscoAuthor Commented:
I get the following error :run time error 2465 application- defined or object defined error
Private Sub FullName_DblClick(Cancel As Integer)
Forms!frmSignIn.cboProviderName = Me.FullName
End Sub
0
 
Rey Obrero (Capricorn1)Commented:
delete this codes first

Private Sub FullName_DblClick(Cancel As Integer)
Forms!frmSignIn.cboProviderName = Me.FullName
End Sub

try this code

Private Sub FullName_DblClick(Cancel As Integer)
 msgbox Me.FullName
End Sub

did you see the message box with the correct name ?
0
 
shieldscoAuthor Commented:
Yes
0
 
Rey Obrero (Capricorn1)Commented:
create a .MDB version and upload ...
0
 
shieldscoAuthor Commented:
ok see attached - select Check-In from the main menu and then double click on Provider Name to get the popup form Service
SignIn-V1.mdb
0
 
Rey Obrero (Capricorn1)Commented:
the combo name is ProviderName not cboProviderName


here is the code

Private Sub FullName_DblClick(Cancel As Integer)
Forms!frmSignIn.ProviderName = Me.FullName
End Sub
0
 
shieldscoAuthor Commented:
Thanks -- good job
0
 
shieldscoAuthor Commented:
Very good
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now