Results 1 to 2 of 2
  1. #1
    webisti is offline The Wisher
    Windows XP Access 2003
    Join Date
    Jun 2011
    Posts
    115

    From subform to splitform

    Hi



    I am trying to figure out how to change this:
    Private Sub Command3_Click()
    Dim StrSQL As String
    If (Eval("[Forms]![BE02_SOH]![Combo] Is Null")) Then
    MsgBox "Please select value first", vbOKOnly, "No Selection"
    ElseIf (Eval("[Forms]![BE02_SOH]![Combo] Is Not Null")) Then
    StrSQL = "Select * from 013_SOH_BASE where"
    StrSQL = StrSQL & " Priority=" & "Forms!BE02_SOH!Combo"
    Me!SubForm.Form.RecordSource = StrSQL
    End If
    End Sub

    Instead of using a form and a subform I am using a splitform.
    How can I change it to make it work?

    any help thanks

    forgot to add the last piece of code:

    Private Sub Command4_Click()
    StrSQL = "Select * from 013_SOH_BASE"
    Me!SubForm.Form.RecordSource = StrSQL
    End Sub

  2. #2
    webisti is offline The Wisher
    Windows XP Access 2003
    Join Date
    Jun 2011
    Posts
    115
    IF i CHANGE THE ME.SUBFORM.VALUE IT GIVES ME AN ERROR CODE.
    wHERE IS MY MISTAKE?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 01-12-2012, 11:56 AM
  2. Replies: 1
    Last Post: 11-29-2011, 01:37 AM
  3. Replies: 37
    Last Post: 08-10-2011, 09:43 AM
  4. Question about Northwind Splitform Controls
    By ajetrumpet in forum Forms
    Replies: 2
    Last Post: 09-13-2010, 09:08 PM
  5. Replies: 2
    Last Post: 01-29-2010, 11:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums