inserting a value of a field depending on the value of another field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fuadmab
    New Member
    • Feb 2010
    • 6

    inserting a value of a field depending on the value of another field

    if field a equels value then field b equels another value, how can i construct the code in V.B , i tried but did not work
    thanks
  • QVeen72
    Recognized Expert Top Contributor
    • Oct 2006
    • 1445

    #2
    Hi,

    Not clear.. but you can try this :

    [code=vb]
    If RST("A") = 100 Then
    RST("B") = "Whatever"
    Else
    RST("B") = "Default"
    End If
    [/code]

    Regards
    Veena

    Comment

    Working...