473,386 Members | 2,078 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,386 software developers and data experts.

How do I use Data in a current record to create a new record?

I think I now understand how to use this forum. I hope I am following the rules now. I am a college student working on a database project that requires some VBA coding for the Event Procedures and various other VBA coding. I have not had a VBA class but still need to get this project done. There are only a few things I need help with to complete it.

What I need to do is to view a current record and capture the data in some fields to be used as data in the new record (all viewable in the current form). I have code that works in another dtabase I use for other purposes that I did not create. This code works fine in that database, but not in my new database.

There are two stages to this. First is to use a Find drop dowm list to view current records so that the user can select from that list of current records; Select and view in the current form any particular record. The first problem is that I can view the list but no record in that list can be slected to view in the form. Here's the code:

Private Sub Combo89_AfterUpdate()

' Find the record that matches the control.
Dim rs As Object

Set rs = Me.Recordset.Clone
rs.FindFirst "[Request_ID] = " & Str(Nz(Me![Combo89], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub

Why can't I select from this list to view the records in the current form?
Nov 7 '10 #1
1 2046
Never mind...I figured out this step...posting the second step question now.
Nov 7 '10 #2

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

Similar topics

5
by: MLH | last post by:
Anyone remember how to determine a particular record's record number (Access 2.0 table question)?
5
by: Jon | last post by:
I have a database that mysteriously takes information from fields in one clients record and places it into the fields of another client record. This happens sporadically. I end up finding data all...
4
by: amywolfie | last post by:
I've been trying to do something for about 3 days – I get close, but not 100%. I am trying to: Open frmRevisionHistory from a button on frmFeeInput. If there is NO RELATED RECORD, then I...
1
by: kufre | last post by:
I need some help. How can I automatically fill my combo box in a new record with data from previous similar record. My form has a option group button with two check box. What I'm trying to do is...
3
by: MLH | last post by:
Can I read the name of the current database's record locking file from within code? I would expect to read something like "MyDB.ldb"
2
by: Shapper | last post by:
Hello, I need to create a new record in a database. The database has 3 fields: (autonumber), and (strings) When I create the record how should I create the value? Does the database...
5
by: campbellbrian2001 | last post by:
I'm trying to get the "Carry data over to new record" code to work from Allen Browne's site: http://allenbrowne.com/ser-24.html I follwed the instruction explicitly and somethings not working......
1
by: sal21 sal21 | last post by:
I use this code to update a sql database from excel to sql... Now i would want to arange this code to export an Access table into sql databse... Sub ADOExcelToSQLServer() Dim Cn As...
5
by: ElTipo | last post by:
Hello! I need to know how I can maintain the same data of the previous record to the new record. For example: In record 1. My input is a date for 7/1/07 but I need this same date in record...
13
by: stateemk | last post by:
I have a form that will have about 50 - 100 records entered at a time all needing the same batch number. All the other data will need to change, but I would like to be able to retain that batch...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.