473,396 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Need help getting started with a Recordset

26
I always have trouble getting started creating a Recordset for some reason.

I've created a Query that takes data from three tables Table1, Table2 and Table 3 and creates a MasterTable.

I have a form that is used to update the MasterTable.

Now I need to push the data back to Table1, Table2, and Table3

Any Suggestions?

Thanks.

DLN
May 17 '07 #1
2 1302
DLN
26
Well I figured out what I needed to do. Here is the code I used if anyone should have the same problem

Expand|Select|Wrap|Line Numbers
  1. Dim rst As DAO.Recordset, rst3 As DAO.Recordset, rst4 As DAO.Recordset, rst5 As DAO.Recordset
  2. Dim db As Database, rst2 As DAO.Recordset
  3. Dim counter As Integer
  4. Dim strSearchName As String
  5.  
  6. Set rst = Me.Recordset
  7. Set db = CurrentDb
  8. Set rst2 = db.OpenRecordset("tblProducts", dbOpenDynaset)
  9. Set rst3 = db.OpenRecordset("tblDataTypes", dbOpenDynaset)
  10. Set rst4 = db.OpenRecordset("tblContentReview", dbOpenDynaset)
  11. Set rst5 = db.OpenRecordset("tblDomains", dbOpenDynaset)
  12.  
  13.     strSearchName = CStr(Me!ProductID)
  14.  
  15.     rst2.FindFirst "ProductID = " & strSearchName
  16.     If rst2.NoMatch = False Then
  17.         MsgBox "Record found"
  18.  
  19. etc:
May 18 '07 #2
NeoPa
32,556 Expert Mod 16PB
DLN,
Thanks for posting your solution.
I wasn't clear if the query you were talking about was an UPDATE query or a SELECT query :(
Jun 2 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Bobby | last post by:
Hello everyone I have a question. The school I am working for is in the beginning process of having a webpage that will direct students to download there homework and be able to view there info...
1
by: mr_ocp | last post by:
Hi friends I need routines to create an excel file with worksheets for each customer and a text file as well for each customer, first worksheet would be a "Summary Report", here is the code that...
19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
106
by: xtra | last post by:
Hi Folk I have about 1000 procedures in my project. Many, many of them are along the lines of function myfuntion () as boolean on error goto er '- Dim Dbs as dao.database Dim Rst as...
1
by: JNariss | last post by:
Hello, I have created a form called frmS2P with the following: 1 listbox called List11 which holds the contents of a query created off my table called tblRequestActions. The fields which the...
6
by: kenshiro | last post by:
Hi All, I'm having a problem with some VBA code in one of my Access 2003 databases. I'm getting the following error when running code behind a command button on a form: "Item not found in this...
4
by: cbtechlists | last post by:
I have an ASP app that we've moved from a Windows 2000 to a Windows 2003 server (sql server 2000 to sql server 2005). The job runs fine on the old servers. Part of the app takes a recordset and...
2
bmallett
by: bmallett | last post by:
I am getting the following error: Error Type: ADODB.Command (0x800A0BB9) Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another....
0
by: =?Utf-8?B?UGFua2Fq?= | last post by:
Please go to http://www.a2zdotnet.com/Default.aspx for step by step tutorials for beginers in ADO.Net sections. -- regards, Pankaj http://www.A2ZDotNet.com "George" wrote:
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.