473,554 Members | 2,806 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Forms problem

I have a form that holds line items in an Order entry project. If the
order exist all the line items are changeable. If I want to add a line
item it goes to data entry and the item is added, but all I can change
now is the record that I added. How do I get the Form out of Data
Entry and be able to see all records including the added one. It's
like my query for the form is gone.
Thanks in advance...
Nov 12 '05 #1
4 1937
On 21 Apr 2004 09:26:27 -0700, lt*****@mii-inc.com (Larry Turner)
wrote:
I have a form that holds line items in an Order entry project. If the
order exist all the line items are changeable. If I want to add a line
item it goes to data entry and the item is added, but all I can change
now is the record that I added. How do I get the Form out of Data
Entry and be able to see all records including the added one. It's
like my query for the form is gone.


You don't explain how the form "goes to data entry". Is it a
continuous form? If not, how is the form being "switched" to data
entry?

In any event, it sounds like you need to requery the form.

How and where you do that depends on how you go to "data entry" now.

mike
Nov 12 '05 #2


Below is the code that sends the form into data entry mode.

This is for adding a new line. Once this code executes the form is then
in data entry mode. All I can now see after the record is added is that
record. the other lines that are on the order are not there anymore.
If Me!LineTC = "A" Then
DoCmd.RunComman d acCmdDataEntry
Me!UbLineNumber = 5000
Me!LineNumber = 5000
Me!PartNumber = "Add Part Here"
Me!PartDescript ion = Null
Me!SpcCode = Null
Me!Price = 0
Me!Weight = 0
Me!Quantity = 1
Me!QuoteID = Forms!QuoteForm !QuoteID
Me!UbLineNumber .SetFocus
End If

This is for lines that already exist.
This work fine and the query stays for the order entry number.
If LineTC = "C" Or LineTC = "D" Then
Me!UbLineNumber = Null
Me!UbLineNumber .SetFocus
End If

I do a requery after the line is added and the record navigation number
just shows 1 record which is the record just added. If I close this form
and open it back up the records added is there along with all the
existing line items. It is a single form by the way and is Access 2000.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3
On 21 Apr 2004 20:47:34 GMT, Larry Turner <lt*****@mii-inc.com> wrote:


Below is the code that sends the form into data entry mode.

This is for adding a new line. Once this code executes the form is then
in data entry mode. All I can now see after the record is added is that
record. the other lines that are on the order are not there anymore.
If Me!LineTC = "A" Then
DoCmd.RunComman d acCmdDataEntry
Me!UbLineNumber = 5000
Me!LineNumber = 5000
Me!PartNumber = "Add Part Here"
Me!PartDescript ion = Null
Me!SpcCode = Null
Me!Price = 0
Me!Weight = 0
Me!Quantity = 1
Me!QuoteID = Forms!QuoteForm !QuoteID
Me!UbLineNumber .SetFocus
End If

This is for lines that already exist.
This work fine and the query stays for the order entry number.
If LineTC = "C" Or LineTC = "D" Then
Me!UbLineNumber = Null
Me!UbLineNumber .SetFocus
End If

I do a requery after the line is added and the record navigation number
just shows 1 record which is the record just added. If I close this form
and open it back up the records added is there along with all the
existing line items. It is a single form by the way and is Access 2000.


How do you "do a requery"? [Be patient, we will get there.]

mike
Nov 12 '05 #4
Instead of DoCmd.RunComman d acCmdDataEntry, what you want is to
docmd.GoToRecor d ,,acNewRec

That will move you to the new record, but you can scroll through
the existing ones.
Larry Turner <lt*****@mii-inc.com> wrote in
news:40******** *************@n ews.frii.net:


Below is the code that sends the form into data entry mode.

This is for adding a new line. Once this code executes the
form is then in data entry mode. All I can now see after the
record is added is that record. the other lines that are on
the order are not there anymore.
If Me!LineTC = "A" Then
DoCmd.RunComman d acCmdDataEntry
Me!UbLineNumber = 5000
Me!LineNumber = 5000
Me!PartNumber = "Add Part Here"
Me!PartDescript ion = Null
Me!SpcCode = Null
Me!Price = 0
Me!Weight = 0
Me!Quantity = 1
Me!QuoteID = Forms!QuoteForm !QuoteID
Me!UbLineNumber .SetFocus
End If

This is for lines that already exist.
This work fine and the query stays for the order entry number.

If LineTC = "C" Or LineTC = "D" Then
Me!UbLineNumber = Null
Me!UbLineNumber .SetFocus
End If

I do a requery after the line is added and the record
navigation number just shows 1 record which is the record just
added. If I close this form and open it back up the records
added is there along with all the existing line items. It is a
single form by the way and is Access 2000.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 12 '05 #5

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

Similar topics

19
4075
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 the code that implements managing unbound controls on forms given the superior performance of unbound controls in a client/server environment. I can...
5
2854
by: Gavin Stevens | last post by:
I'm trying to figure out the ASP.NET Forms Auth I have 3 or 4 pages i want to allow anonymous access to.. Then I have 5 or 6 pages I placed in another directory in the webproject. These I want to manually authenticate users to provide acess My project has 2 web.config files... the default file <authentication mode="Forms"><forms...
5
292
by: Gavin Stevens | last post by:
I'm trying to figure out the ASP.NET Forms Auth I have 3 or 4 pages i want to allow anonymous access to.. Then I have 5 or 6 pages I placed in another directory in the webproject. These I want to manually authenticate users to provide acess My project has 2 web.config files... the default file <authentication mode="Forms"><forms...
8
2711
by: Stephen Rice | last post by:
Hi, I have a periodic problem which I am having a real time trying to sort. Background: An MDI VB app with a DB on SQL 2000. I have wrapped all the DB access into an object which spawns a thread to access the database and then displays a modal dialog which allows the user to cancel the task, if it is taking longer than they want, and...
4
424
by: =?Utf-8?B?R3V1czEyMw==?= | last post by:
Hi, I created a web site on a remote server. To logon the user must enter a user id and password. The site is uses Forms Authentication. The web config file looks as follows: <configuration> <system.web> <customErrors mode="Off"/>
0
7499
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...
1
7531
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6120
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
5414
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
5136
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
3539
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...
1
1994
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
1112
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
814
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.