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 / Forms Programming / February 2007

Tip: Looking for answers? Try searching our database.

Replicator ID Coding

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael Kintner - 28 Feb 2007 16:31 GMT
I am having a problem with Invalid Data type when trying to add a new record
with a ReplicatorID in it.  I get a Data Type Converion Error.

       rs!TankID = CStr(Forms![TankInfo]![TankID])
or
       rs!TankID = Forms![TankInfo]![TankID]

Both statements give me the same error.

TankID is a ReplicatorID, if I display the field TankID it shows
{000001CF-0000-0000-0000-000000000000}

Very confusing.

Thank you in advance for your help,
Mike
David W. Fenton - 28 Feb 2007 17:31 GMT
> I am having a problem with Invalid Data type when trying to add a
> new record with a ReplicatorID in it.  I get a Data Type Converion
[quoted text clipped - 10 lines]
>
> Very confusing.

See:

 http://trigeminal.com/usenet/usenet011.asp?1033

Also, check out the GUIDToString() and StringToGUID() functions.

Signature

David W. Fenton                  http://www.dfenton.com/
usenet at dfenton dot com    http://www.dfenton.com/DFA/

Michael Kintner - 28 Feb 2007 17:59 GMT
Excellent, thanks for the info, that worked.

I would have rather not use GUID's, however the application is on its way to
SQL server where GUID is needed to autocreate a new record.  Unless you know
of other ways to auto create a new record in SQL with a unique ID number?
The only way I found is using SQL's uniqueidentifier with (newid()).  Is
there something better?

Mike

>> I am having a problem with Invalid Data type when trying to add a
>> new record with a ReplicatorID in it.  I get a Data Type Converion
[quoted text clipped - 16 lines]
>
> Also, check out the GUIDToString() and StringToGUID() functions.
 
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.