thanks SIJP i will look how i can resolve this
other question:
still the same Form, but now i have the following problem
in access
(see code below)
------------------------------------------------------------
Private Sub Befehl37_Click()
DoCmd.Close
End Sub
Private Sub Bezeichnungsfeld138_Click()
Dim selectPntStr As String
Dim selectSubStr As String
Dim selectSynStr As String
Dim selectStr As String
Dim insertPntStr As String
Dim insertSubStr As String
Dim insertSynStr As String
Dim insertStr As String
Dim deleteStr As String
selectStr = "SELECT " & _
"ID, Domain, TLD, LoginName, Passwort, Service, Kundennummer, FK_ID_Server, Erfasst_am, gesperrt, Bemerkungen, alte_infos, alg_infos, best_anm, Reseller, Reseller_nummer, Anrede_best, Firma_best, Nname_best, Vorname_best, Strasse_best, Postfach_best, PLZ_best, Ort_best, Telefon_best, Fax_best, Land_best, Email_best, Anrede_re, Firma_re, Nname_re, Vorname_re, Strasse_re, Postfach_re, PLZ_re, Ort_re, Telefon_re, Fax_re, Land_re, Email_re, Anrede_tec, Firma_tec, Nname_tec, Vorname_tec, Strasse_tec, Postfach_tec, PLZ_tec, Ort_tec, Telefon_tec, Fax_tec, Land_tec, Email_tec, Kontrolliert, erfasst_durch, MXrecord, Survey, sperrdatum " & _
"FROM dbo_Kunden " & _
"WHERE ID=" & Me![ID]
selectPntStr = "SELECT " & _
"ID_Point, Pointing, FK_ID_Kunde " & _
"FROM dbo_Pointings " & _
"WHERE FK_ID_Kunde=" & Me![ID]
selectSubStr = "SELECT " & _
"ID_Sub, Subdomain, Pfad, FK_ID_Kunde " & _
"FROM dbo_Subdomains " & _
"WHERE FK_ID_Kunde=" & Me![ID]
selectSynStr = "SELECT " & _
"ID_Synonym, Synonym, FK_ID_Kunde " & _
"FROM dbo_Synonyme " & _
"WHERE FK_ID_Kunde=" & Me![ID]
insertStr = "INSERT INTO dbo_delKunden (" & _
"ID, Domain, TLD, LoginName, Passwort, Service, Kundennummer, FK_ID_Server, Erfasst_am, gesperrt, Bemerkungen, alte_infos, alg_infos, best_anm, Reseller, Reseller_nummer, Anrede_best, Firma_best, Nname_best, Vorname_best, Strasse_best, Postfach_best, PLZ_best, Ort_best, Telefon_best, Fax_best, Land_best, Email_best, Anrede_re, Firma_re, Nname_re, Vorname_re, Strasse_re, Postfach_re, PLZ_re, Ort_re, Telefon_re, Fax_re, Land_re, Email_re, Anrede_tec, Firma_tec, Nname_tec, Vorname_tec, Strasse_tec, Postfach_tec, PLZ_tec, Ort_tec, Telefon_tec, Fax_tec, Land_tec, Email_tec, Kontrolliert, erfasst_durch, MXrecord, Survey, sperrdatum " & _
") " & selectStr
insertPntStr = "INSERT INTO dbo_delPointings (" & _
"ID_Point, Pointing, FK_ID_Kunde" & _
") " & selectPntStr
insertSubStr = "INSERT INTO dbo_delSubdomains (" & _
"ID_Sub, Subdomain, Pfad, FK_ID_Kunde" & _
") " & selectSubStr
insertSynStr = "INSERT INTO delSynonyme (" & _
"ID_Synonym, Synonym, FK_ID_Kunde" & _
") " & selectSynStr
deleteStr = "DELETE FROM dbo_Kunden " & _
"WHERE ID=" & Me![ID]
If MsgBox("Wollen Sie diesen Datensatz wirklich in den Papierkorb werfen?", vbYesNo, "In den Papierkorb werfen") = vbYes Then
DoCmd.SetWarnings (False)
DoCmd.RunSQL insertStr
DoCmd.RunSQL insertPntStr
DoCmd.RunSQL insertSubStr
DoCmd.RunSQL insertSynStr
DoCmd.RunSQL deleteStr
DoCmd.Close
DoCmd.SetWarnings (True)
End If
End Sub
Private Sub Domain_Click()
End Sub
Private Sub Form_Open(Cancel As Integer)
DoCmd.Maximize
End Sub
Private Sub Befehl107_Click()
On Error GoTo Err_Befehl107_Click
Dim stDocName As String
stDocName = "Datenblatt_Linux"
DoCmd.OpenReport stDocName, acPreview, , "[ID]=" & Me![ID]
Exit_Befehl107_Click:
Exit Sub
Err_Befehl107_Click:
MsgBox Err.Description
Resume Exit_Befehl107_Click
End Sub
Private Sub Befehl108_Click()
On Error GoTo Err_Befehl108_Click
Dim stDocName As String
stDocName = "Datenblatt_NT"
DoCmd.OpenReport stDocName, acPreview, , "[ID]=" & Me![ID]
Exit_Befehl108_Click:
Exit Sub
Err_Befehl108_Click:
MsgBox Err.Description
Resume Exit_Befehl108_Click
End Sub
Private Sub Kombinationsfeld148_BeforeUpdate(Cancel As Integer)
End Sub
Private Sub Kombinationsfeld148_Click(Cancel As Integer)
If Me![BS] = "Linux" Then
Me.Befehl108.Visible = False
Me.Befehl107.Visible = True
ElseIf Me![BS] = "NT" Then
Me.Befehl107.Visible = False
Me.Befehl108.Visible = True
End If
End Sub
Private Sub Kombinationsfeld148_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
End Sub
-----------------------------------------------------------
if i open the form above it works, except the following:
if a choose a domain from the unbounded list it shoud automatically check on which BS (Betriebssystem) the domain is installed and the give the user the ability to generate the approriate DataSheet, but this doesn't work why?
i also double checked the sql query's etc, but this doesn't solve my problem
thanks for your help
best regards
Elvis