Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old April 11th, 2005, 03:19 PM
petelun petelun is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 88 petelun User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 2 m 44 sec
Reputation Power: 5
Record CLone Issue

hello
Im trying to clone my a record on my form so my user doesnt have to re key all the information twice.
No on has been able to help me.....Im using a data control liked to my access database. now in access their is a dup function...
below is my code but given me errors

much help needed thanks or a example


error:

compile error:
method or data member not found

this points to recordsetclone property?

Private Sub Command12_Click()
Set rstClone = Me.RecordsetClone
rstClone.MoveLast

DoCmd.GoToRecord , , acNewRec

Set rstNew = Me.Recordset

With rstNew

.text88(0) = rstClone.text88(0)


End With

rstNew.Close
Set rstNew = Nothing
rstClone.Close
Set rstClone = Nothing

End Sub

Reply With Quote
  #2  
Old April 11th, 2005, 11:04 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 22 h 9 m 49 sec
Reputation Power: 181
Are you coding inside Access? The recordset clone method is Access-specific and not available in other flavors of VB.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #3  
Old April 12th, 2005, 07:24 AM
petelun petelun is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 88 petelun User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 2 m 44 sec
Reputation Power: 5
ok

so how would you clone in VB?

Reply With Quote
  #4  
Old April 12th, 2005, 07:41 AM
petelun petelun is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 88 petelun User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 2 m 44 sec
Reputation Power: 5
ok

well i think everyone is confused... Im just trying to clone or duplicate the record from vb on my form so the user dosent have to re key information a person can have 5 records associated with them.



So if record one has joe smith and he has same information but soem fields different they can click a control to clone or duplicate the record so less rekeying?

Reply With Quote
  #5  
Old April 13th, 2005, 11:57 AM
petelun petelun is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 88 petelun User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 2 m 44 sec
Reputation Power: 5
Lets try again

Ok so i have 8 feilds in my vb form

Name
Address
City
state
zip
phone
product
order no

Now i want to be able to duplicate(clone the record) so the user wont have to re type the first 6 feilds(easier for the user)...? So a person can have multiple order no and products but with same name, address extc So i want to be able to duplictae the record so less keying and the user would only have to change the product and orderno?



much help needed
im using DAO....

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Record CLone Issue


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT