Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Setup / Configuration / December 2003

Tip: Looking for answers? Try searching our database.

ReplicationID displays as ????????

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter Jones - 23 Dec 2003 04:30 GMT
Hi,
My table's PK is a replication ID. If I display the value
in a form it is as expected, eg {ADSSD..SSD}. However if I
access the value programatically, eg MsgBox Me.PrimaryKey,
the value is always returned as "????????".

I need to get at the real ReplicationID (a GUID) because I
need to create child records in some cases and the ID is
needed as a foriegn key in the child table.

How can I get access to my record's PK value in GUID
format?

BTW this is not while I'm creating the record, ie the
record already exists and has already been given a valid
ReplicationID value.

TIA - Peter
Douglas J. Steele - 23 Dec 2003 11:48 GMT
Try MsgBox StringFromGUID(Me.PrimaryKey)

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(No private e-mails, please)

> Hi,
> My table's PK is a replication ID. If I display the value
[quoted text clipped - 14 lines]
>
> TIA - Peter
Peter Jones - 23 Dec 2003 21:59 GMT
Thanks Douglas - spot on!! Cheers, Peter

>-----Original Message-----
>Try MsgBox StringFromGUID(Me.PrimaryKey)
[quoted text clipped - 19 lines]
>
>.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.