Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / July 2003



Tip: Looking for answers? Try searching our database.

Values not sticking

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Len - 30 Jul 2003 18:47 GMT
I've tried to respond several times, but my response never gets posted. So I
re- posted.

AddressID is a long, and although a foreign key, the relationship is not
setup.  In the VB DLL
I broke out and hand entered a value for AddressID, PeopleID (long) and
PhoneType (Small Int), while Phone.number already had a value.  It continued
on with the Insert.  I then queried with Query Analyzer and both AddressID
and PeopleID were null, while Number and PhoneType had data.  No error was
reported.

VB6, msSql 7.0, update routine in ntier dll.
This is a disconnected recordset passed by the client:
The debug print looks perfect, but when I fetch the records using Query, the
addressID is Null.
Thanks in advance for your help.

If rsPhone.RecordCount Then

       rsPhone.MoveFirst
       Do While Not rsPhone.EOF
           rsPhone!addressID = rsAddress!addressID
           rsPhone.Update
           rsPhone.MoveNext
       Loop

    ' debug - print out results
      rsPhone.MoveFirst
      Do While Not rsPhone.EOF
           Debug.Print rsPhone!addressID, rsPhone!Number
           rsPhone.MoveNext
       Loop

      'Update it
      Set rsPhone.ActiveConnection = cn
      rsPhone.UpdateBatch
      Set rsPhone.ActiveConnection = Nothing
   End If

Len
Email  len@lynxmedia.com

--
*************************************
Len Latimer, President
Lynx Media, Inc.
Voice 1-800-451-5969 x107
Fax    1-818-761-5859
Email  len@lynxmedia.com
Web  www.lynxmedia.com
12501 Chandler Blvd #202
Valley Village, CA 91607
Scot Rose [MSFT] - 31 Jul 2003 22:21 GMT
Does rsPhone have a primary key field being returned? Do you have a small sample project that reproduces this problem? If so send it to me to take a look at.

Want to know more? Check out the MSDN Library at http://msdn.microsoft.com  or the Microsoft Knowledge Base at http://support.microsoft.com

Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : scotr@online.microsoft.com  <Remove word online. from address>

This posting is provided “AS IS”, with no warranties, and confers no rights.

--------------------
>Reply-To: "Len" <len@lynxmedia.com>
>From: "Len" <len@lynxmedia.com>
[quoted text clipped - 64 lines]
>12501 Chandler Blvd #202
>Valley Village, CA 91607
 
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



©2009 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.