473,549 Members | 2,741 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1357
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.GoToRecor d 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.Recordsetclo ne
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
2071
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 to get a working system just about finished. I am building an interface for our customer service folks to use to manage registered customers and...
7
1807
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 info is drawn out of the database. Some of the information is drawn out and displayed properly, but other information is not. The strangest part...
2
1285
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 enters the serial number and hits the submit button, the edit.asp page dispalys all the information pertaining to the serial number on the same page....
1
1809
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 the employes personal details like name,age adress etc.Now the problem is when I edit the name of the employee. I want the name to be changed in the ...
4
3135
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 further away, completely leaving the selector box area. Any ideas? VS 2003 and VB.Net This is a simple application at the moment but the form is...
1
1350
by: faiyeah | last post by:
Here is my database design: Entity ------ Publisher(, PubName) Author(, AuName) Sale(, Price, UnitOnHand) Book(, Title, BkType, PubCode)
9
2710
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 code: <script runat="server"> Dim sqlConn As New SqlConnection(".....") Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs) If Not...
1
3304
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 (ContactGateway.cfc) - index.cfm - Deals with the business logic - display/form.cfm - Produces the form for both add and edit behaviour
2
2207
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 session_start(); if (!isset($_SESSION)) {
2
3134
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 message as in alert box as " Internet Explorer cannot open the Internet site http://google.citycarrentals.com.au/viewalllocations.php . Operation...
0
7450
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
6043
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5368
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5088
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1941
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1059
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.