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

Problem with edit form

Thanks for any help - I have a form to enter records. It works fine. It
is crowded with over 30 fields. It has as its datasource a table (maybe
it should be a query of that table?). What I want to do is to take this
form, copy it, and turn it into a form for editing those records. I
would like to take my keyfield textbox for the record number (which is
an auto-number), and turn it into a combo box to bring up a list of the
records. Then upon finding the record, making data changes and saving
it. I just have ran into several errors trying to do this task.
Thanks! Bhavesh

Oct 20 '06 #1
1 1352
pa*************@yahoo.com wrote:
Thanks for any help - I have a form to enter records. It works fine. It
is crowded with over 30 fields. It has as its datasource a table (maybe
it should be a query of that table?). What I want to do is to take this
form, copy it, and turn it into a form for editing those records. I
would like to take my keyfield textbox for the record number (which is
an auto-number), and turn it into a combo box to bring up a list of the
records. Then upon finding the record, making data changes and saving
it. I just have ran into several errors trying to do this task.
Thanks! Bhavesh
Wouldn't it be better to have 1 form that can add/edit records?

You could have a combo box to find records.

You could use navigation buttons to go record to record and even to to a
new record. You could even put a button to go to a new record and use
something like
DoCmd.GoToRecord acDataForm, "FormName", acNewRec

In your combo have a list of all records.

In the forms OnCurrent event do something like
If Not Me.NewRecord Then
Me.ComboBox = Me.ID 'ID is assumed form's id field name
Else
Me.ComboBox = Null
Endif

In the ComboBox AfterUpdate event do something like
DIm rst As Recordset
Set rst = Me.Recordsetclone
rst.findfirst "ID = " & Me.ComboBox
Me.bookmark = rst.bookmark
rst.close
set rst = Nothing
Oct 20 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: redneck_kiwi | last post by:
Hi all: I have a really weird problem. I am developing a customer catalog system for my company and as such have delved into sessions for authentication and access levels. So far, I have managed...
7
by: Munzilla | last post by:
Ok, I have an ASP page that I use to add several pieces of information to a database and also display that information in an edit mode. The problem is, when I use the page for edit, not all of the...
2
by: amitavabardhan | last post by:
An application is hosted on two servers in a cluster. The login.asp page authenticates the users and sends them to the edit.asp page which first asks for an serial number and then when the user...
1
by: Sunil Sabir | last post by:
Dear All, I have a search form which has 3 drop down boxes dropID ,dropPostCode, dropName. when I select some thing in the dropID name lets say 0001 I press go button.It displays a Record of...
4
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps...
1
by: faiyeah | last post by:
Here is my database design: Entity ------ Publisher(, PubName) Author(, AuName) Sale(, Price, UnitOnHand) Book(, Title, BkType, PubCode)
9
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using EditCommandColumn in the DataGrid. This is the...
1
by: chromis | last post by:
Hi, I'm having trouble fully implementing the edit section of a contact admin system, so far I have written the following: - Bean (Contact.cfc) - Data Access object (ContactDAO.cfc) - Gateway...
2
coolv
by: coolv | last post by:
Hello I have problem in my page that the dropdown box is not displaying data according to selection of first dropdown.Please help me. Below is my code. thanks.............. <?php ...
2
by: swethak | last post by:
Hi, I am getting the problem the problem with google map in Internet Explorer. This map worked fine in mozilla . When i opened the same map in Internet Explorer i am getting the error...
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.