Advertisement

07.02.2008 at 12:54AM PDT, ID: 23532746
[x]
Attachment Details

Access- Visual Basic Sql statement

Asked by fsuedu in Microsoft Access Database, SQL Query Syntax, Access Coding/Macros

Hello,

      Have code in Access Form.

Private Sub NameID_Change()

Dim crit As String

crit = "Select LastScore from Person where PersonID = NameID"
Me.Handicap = crit

End Sub

Trying to update field on form called Handicap with sql statement
From table called Person

Lastscore is in the Person Table
PersonID is in the Person Table
NameID is on the form


Jk
Start Free Trial
[+][-]07.02.2008 at 01:05AM PDT, ID: 21914303

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Access Database, SQL Query Syntax, Access Coding/Macros
Sign Up Now!
Solution Provided By: tbsgadi
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.02.2008 at 01:22AM PDT, ID: 21914361

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628