18. december 2001 - 11:12Der er
6 kommentarer og 1 løsning
Rapporter
Jeg skal lave nogle rapporter i access
¨jeg indtaster fra/til dato i en formular men når jeg kører formularen kommer den med fejl i (Me.caption = Me.OpenArgs)
Option Compare Database Private Sub Form_Open(Cancel As Integer) Me.Caption = Me.OpenArgs End Sub Private Sub Vis_udskrift_Click() If IsNull([startdato]) Or IsNull([slutdato]) Then MsgBox \"Du skal indtaste både start- og slutdato.\" DoCmd.GoToControl \"Startdato\" Else If [startdato] > [slutdato] Then MsgBox \"Slutdatoen skal være efter startdatoen.\" DoCmd.GoToControl \"Startdato\" Else Me.Visible = False End If End If End Sub
If youopen the form directly then the openargs WILL NOT be set, so me suggestion If Not IsNull ... will work. If youopen the form fromanother form then make sure you use th eopenargs parameter in the docmd.openform
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.