Solved

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

Posted on 2011-09-29
11
181 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
[X]
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
  • 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
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!

 

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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

632 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