On Jun 9, 4:04 pm, "Ken Snell \(MVP\)"
<kthsneisll...@ncoomcastt.renaetl> wrote:
> The fourth argument is the one you use to send the filtering string to the
> form that is being opened. In your code, you have your string as the third
[quoted text clipped - 33 lines]
>
> - Show quoted text -
Ken,
Thank you.
I did have the argument in the wrong position. Here is the code that
actually works the way I wanted:
***************************
Private Sub event_DblClick(Cancel As Integer)
Dim evk As String 'Integer
evk = Me.EventKey
MsgBox (evk)
DoCmd.OpenForm "eventFrm", , , "[eventkey]=" & evk, acFormEdit
End Sub
*******************************
It didn't seem to matter if i dim'd evk as string or integer. I think
my problem is i don't really understand the syntax and punctuation of
these statements. i.e. when to use quotes, brakets etc. If you know of
any good references for this type of thing I would appreicate the
advise. Thanks again
BRC
Ken Snell (MVP) - 10 Jun 2007 03:11 GMT
If a field is a number field, you do not use any delimiter.
If a field is a text or memo field, you use a ' delimiter.
If a field is a date/time field, you use a # delimiter if you're passing a
"mm/dd/yyyy" , "hh:nn:ss" , or "mm/dd/yyyy hh:nn:ss" type of date/time.
Remember that Jet will assume US format of date if you provide it with an
ambigous date (e.g., 03/05/2007 -- which is March 5, 2007 in US, and May 3,
2007 in Europe and elsewhere).

Signature
Ken Snell
<MS ACCESS MVP>
> On Jun 9, 4:04 pm, "Ken Snell \(MVP\)"
> <kthsneisll...@ncoomcastt.renaetl> wrote:
[quoted text clipped - 56 lines]
> advise. Thanks again
> BRC