473,395 Members | 1,554 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,395 software developers and data experts.

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 1927
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.RunCommand acCmdDataEntry
Me!UbLineNumber = 5000
Me!LineNumber = 5000
Me!PartNumber = "Add Part Here"
Me!PartDescription = 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.RunCommand acCmdDataEntry
Me!UbLineNumber = 5000
Me!LineNumber = 5000
Me!PartNumber = "Add Part Here"
Me!PartDescription = 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.RunCommand acCmdDataEntry, what you want is to
docmd.GoToRecord ,,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*********************@news.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.RunCommand acCmdDataEntry
Me!UbLineNumber = 5000
Me!LineNumber = 5000
Me!PartNumber = "Add Part Here"
Me!PartDescription = 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
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...
5
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...
5
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...
8
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...
4
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: ...
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: 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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.