Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2011-09-29
11
178 Views
Last Modified: 2012-05-12
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
Comment
Question by:shieldsco
  • 6
  • 5
11 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 36814929
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
 

Author Comment

by:shieldsco
ID: 36815189
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
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 36815229

try this, change object/control names accordingly

private sub FullName_DblClick(Cancel As Integer)

Forms!Login.cboProviderName=Me.FullName

end sub
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 

Author Comment

by:shieldsco
ID: 36815463
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
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 36815553
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
 

Author Comment

by:shieldsco
ID: 36815629
Yes
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 36815679
create a .MDB version and upload ...
0
 

Author Comment

by:shieldsco
ID: 36815763
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
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 36815831
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
 

Author Comment

by:shieldsco
ID: 36816058
Thanks -- good job
0
 

Author Closing Comment

by:shieldsco
ID: 36816066
Very good
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question