MarkWright
Programmer
Hello,
I am using an ADP Databank with msSQL 2000.
I have a formular and call another formular from the main formular. I am filling and filtering the second formular with a recordsource. what I need is a way to use a combobox with J,N,O where I can decide in each line/record which letter I want. the recordsource and combobox information will then be saved in a new Table. I have not found out how to fill each combobox with the letter I want. once I chose a letter all comboboxes are filled. I need a way to choose each combo box separately. any Ideas ?
I have no clue right now.
thanx
Mark
so far I have written this--->
Bez = DLookup("[Bezeichnung2]", "KHKArtikel", _
"[Bezeichnung1] = '" & Me!Produkt1 & " " & Me!Release1 & "'"
If IsNull(Bez) Then
'Me!lstTestProbleme.RowSource = " "
Me.Form.RecordSource = " "
Exit Sub
Else
Bez = IIf(InStr([Bez], ";"
, Left([Bez], InStr([Bez], ";"
- 1), [Bez])
End If
Me.RecordSource = "SELECT dbo.PBS_TestzyclusProblemNr.testNr," & _
" dbo.PBS_Probleme.ProblemNr,
dbo.PBS_Produkt.Kurzname," & _
" dbo.PBS_Probleme.System, dbo.PBS_Probleme.Release," & _
" dbo.PBS_Probleme.ErfasstAm, dbo.PBS_TestzyclusProblemNr.Uebernehmen" & _
" FROM dbo.PBS_TestzyclusProblemNr RIGHT OUTER JOIN" & _
" dbo.PBS_Probleme INNER JOIN dbo.PBS_Produkt ON" & _
" dbo.PBS_Probleme.ProduktNr = dbo.PBS_Produkt.ProduktNr ON" & _
" dbo.PBS_TestzyclusProblemNr.ProblemNr = dbo.PBS_Probleme.ProblemNr" & _
" WHERE (dbo.PBS_Produkt.Kurzname = '" & Me!Produkt & "') AND " & _
" (dbo.PBS_Probleme.Release = '" & Me!Release & "')AND " & _
" (dbo.PBS_Probleme.ErfasstAm <= '" & Me!Datum & "') AND " & _
" (dbo.PBS_Probleme.ErfasstAm >= '" & Bez & "')"
I am using an ADP Databank with msSQL 2000.
I have a formular and call another formular from the main formular. I am filling and filtering the second formular with a recordsource. what I need is a way to use a combobox with J,N,O where I can decide in each line/record which letter I want. the recordsource and combobox information will then be saved in a new Table. I have not found out how to fill each combobox with the letter I want. once I chose a letter all comboboxes are filled. I need a way to choose each combo box separately. any Ideas ?
I have no clue right now.
thanx
Mark
so far I have written this--->
Bez = DLookup("[Bezeichnung2]", "KHKArtikel", _
"[Bezeichnung1] = '" & Me!Produkt1 & " " & Me!Release1 & "'"
If IsNull(Bez) Then
'Me!lstTestProbleme.RowSource = " "
Me.Form.RecordSource = " "
Exit Sub
Else
Bez = IIf(InStr([Bez], ";"
End If
Me.RecordSource = "SELECT dbo.PBS_TestzyclusProblemNr.testNr," & _
" dbo.PBS_Probleme.ProblemNr,
dbo.PBS_Produkt.Kurzname," & _
" dbo.PBS_Probleme.System, dbo.PBS_Probleme.Release," & _
" dbo.PBS_Probleme.ErfasstAm, dbo.PBS_TestzyclusProblemNr.Uebernehmen" & _
" FROM dbo.PBS_TestzyclusProblemNr RIGHT OUTER JOIN" & _
" dbo.PBS_Probleme INNER JOIN dbo.PBS_Produkt ON" & _
" dbo.PBS_Probleme.ProduktNr = dbo.PBS_Produkt.ProduktNr ON" & _
" dbo.PBS_TestzyclusProblemNr.ProblemNr = dbo.PBS_Probleme.ProblemNr" & _
" WHERE (dbo.PBS_Produkt.Kurzname = '" & Me!Produkt & "') AND " & _
" (dbo.PBS_Probleme.Release = '" & Me!Release & "')AND " & _
" (dbo.PBS_Probleme.ErfasstAm <= '" & Me!Datum & "') AND " & _
" (dbo.PBS_Probleme.ErfasstAm >= '" & Bez & "')"