replication id function?

  • Thread starter Thread starter Keith G Hicks
  • Start date Start date
K

Keith G Hicks

I need to generate a replicationID value in code (not in a table). In MS
T-SQL I can use the NEWID() function to get something like
"0323E5D3-D54D-4842-86B0-47CE25D0EFDB"

How can I do this in MS Access 2k?

Thanks,

Keith
 
Thanks Brendan. The first example in that site works great in vba without
any mods. Much appreciated. I thought about using the table idea but figured
there must be a code way to handle it.

Keith


There's a VB example at the following URL that looks as though it should
work in VBA ...

http://www.vbcity.com/forums/topic.asp?tid=1713

Alternatively, you could use a table. Just add a record to the table, grab
the value from the newly-created record, then delete the record again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top