"vek" <(E-Mail Removed)> wrote in message
news:3513F417-2A35-4F46-B039-(E-Mail Removed)...
> Dirk-
>
> Thanks for the good advise. Part of the function that you specified
> includes:
> Select Case strIDType
> Case "String":
> strSQL = strSQL & "[" & strIDName & "] = '" & varIDvalue & "'"
> Case "Long", "Integer", "Double": 'AutoNumber is Type Long
> strSQL = strSQL & "[" & strIDName & "] = " & varIDvalue
> Case Else
> GoTo Err_fConcatChild
> End Select
>
> My tables use 'ReplicationID' for the primary fields. How can I modify
> this
> code to use them.
If you need to do that -- your original question didn't involve setting
criteria -- you might try this additional case:
Case "GUID": 'use for Replication ID or other GUID fields
strSQL = strSQL & "[" & strIDName & "] = " & _
StringFromGUID(varCustomerID)
I haven't tested that, though.
--
Dirk Goldgar, MS Access MVP
Access tips:
www.datagnostics.com/tips.html
(please reply to the newsgroup)