• 3 odgovora
  • 2.044 pregleda
pojavjanje greska where conditions 25.08.2009. u 12:53 · pre 208 meseci #1
gde je greska tu hocu da mi otvori isti broj mase ?
Dim strWhere As String
Dim strFormName As String

strFormName = "For_Detali_Smetki"
strWhere = " [Masa]='" & Me.[Masa] & "'"
DoCmd.OpenForm strFormName, View, strWhere
Potpis
viktorce
Re: pojavjanje greska where conditions 25.08.2009. u 13:03 · pre 208 meseci #2
Citat:
viktorce: gde je greska tu hocu da mi otvori isti broj mase ?

Code:
DoCmd.OpenForm strFormName, View, strWhere


Nedostaje još jedan zarez, tj. ovde treba da stoji:
Code:
DoCmd.OpenForm strFormName, View, , strWhere
Re: pojavjanje greska where conditions 25.08.2009. u 23:12 · pre 208 meseci #4
Private Sub Masa_AfterUpdate()
If IsNull(Me.Sifrata) Or Me.Masa = "" Then
MsgBox "Nemate Vneseno Kelner", vbCritical, "Greska"
Exit Sub
End If
If Me.Masa.Value = (DLookup("Masa", "Tbl_Masi_Arhiva", "Masa='" & Me.Masa & "'")) And (Me.Masa <> "afad") Then

DoCmd.OpenForm "For_Smetki", , , "Masa = '" & "" & Masa & "" & "'", acFormEdit
Else
DoCmd.OpenForm "For_Smetki", , , "Masa = '" & "" & Masa & "" & "'", acFormEdit
DoCmd.GoToRecord , , acNewRec
End If
End Sub




a kod ovaj kod gde je greska?
Potpis
viktorce
Prijavite se da biste odgovorili u ovoj temi.PrijavaRegistracija

Premeštanje teme