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

limit records displayed

158 100+
I'm using 2 forms one is a customer entry form and the second is an invoice entry form for that particular customer. I'm sending the invoice form the customer id number to keep the link up. The form is set as a continuous form and what i am having the user do is press a button to add a new record. For example the customer needs a piece of equipment and the accessory to that equipment. This would be on two lines (records) in the continuous form. The only problem is that if when i press the button to bring up the invoice form it shows the current customer id number and all of the invoice records for all the customers...any ideas?



Thanks in advance!
Sep 5 '08 #1
3 1822
NeoPa
32,556 Expert Mod 16PB
...
I'm sending the invoice form the customer id number to keep the link up.
...
How are you doing this?

It seems this is the bit that's failing so tell us how you're doing it at the moment.
Sep 6 '08 #2
Jollywg
158 100+
How are you doing this?

It seems this is the bit that's failing so tell us how you're doing it at the moment.
I'm not real sure that this is the problem because it is displaying the information that I have in the appropriate textboxes:
Expand|Select|Wrap|Line Numbers
  1. Private Sub btnCreateInvoice_Click()
  2. On Error GoTo Err_btnCreateInvoice_Click
  3.  
  4. DoCmd.SetWarnings False
  5.  
  6.     Dim stDocName As String
  7.     Dim stLinkCriteria As String
  8.     Dim strSQL As String
  9.     Dim strSQLUpdate As String
  10.  
  11.     strSQLUpdate = "UPDATE tblScratchInvoice INNER JOIN tblInvoice ON tblScratchInvoice.InvoiceNum = tblInvoice.InvoiceNum SET tblInvoice.InvoiceNum = [tblScratchInvoice.InvoiceNum], tblInvoice.FreightCompany = [tblScratchInvoice.FreightCompany], tblInvoice.ProNumber = [tblScratchInvoice.ProNumber], tblInvoice.PartNum = [tblScratchInvoice.PartNum], tblInvoice.Description = [tblScratchInvoice.Description], tblInvoice.ItemCost = [tblScratchInvoice.ItemCost], tblInvoice.Qty = [tblScratchInvoice.Qty], tblInvoice.TotalCost = [tblScratchInvoice.TotalCost], tblInvoice.InvoiceTotal = [tblScratchInvoice.InvoiceTotal], tblInvoice.AgentRef = [tblScratchInvoice.AgentRef];"
  12.  
  13.     DoCmd.RunSQL strSQLUpdate
  14.  
  15. Exit_btnCreateInvoice_Click:
  16.     Exit Sub
  17.  
  18. Err_btnCreateInvoice_Click:
  19.     MsgBox Err.Description
  20.     Resume Exit_btnCreateInvoice_Click
  21.  
  22. End Sub

I forgot that since i posted this last i decided to move to a query that runs every time the invoice button is pressed. Oh i also know that right now its not opening up my frmAppend. I took this out for debugging purposes.
Sep 8 '08 #3
NeoPa
32,556 Expert Mod 16PB
How are you doing this?

It seems this is the bit that's failing so tell us how you're doing it at the moment.
I thought this was a fairly straightforward question. Please let me know if this is hard to understand, or if you have answered it, but I just can't see it in your post.
Sep 9 '08 #4

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

Similar topics

6
by: middletree | last post by:
Yesterday, I posted a question which ended up giving me a lot of info, but the core question never got answered/solved. The short version is that when a page displays a number of records based on...
6
by: JohnH | last post by:
I have an ASP app (developed with Interdev 6) which uses a DTC listbox (server-side) bound to a recordset to allow the user to make a selection. This works fine until the number of records in the...
6
by: Hannu | last post by:
Hi. In the ldb file you can see the users of the mdb-file. If you open the mdb-file your machine and username will be written in the lbd- file. Allthough you close the mdb-file your name won't...
3
by: deko | last post by:
Is there any way to limit the number of records loaded into a ListBox? I looked at qdf.MaxRecords (to apply to the query that is the RowSource of the ListBox) but that only applies to ODBC data...
1
by: aaron.reese | last post by:
Guys, this is my problem:- I have records which are linked by two fields on a left inner join (there may be 0,1 or more records in the right hand table) The relationship is not unique (it's...
4
by: Derty | last post by:
Any way to limit the length of databound text on a datalist itemtemplate?
11
by: shriil | last post by:
Hi I have this database that calculates and stores the incentive amount earned by employees of a particular department. Each record is entered by entering the Date, Shift (morn, eve, or night)...
2
dlite922
by: dlite922 | last post by:
I've heard this may not be possible, but never hurts to ask. I've got three tables, Case, Violator, Alias Case is a court police case Violator is the person Alias is different names...
2
by: kurtzky | last post by:
i created a form that should function as follows: i will enter a number in a textbox..then it should query from the database all the records which has that number..these records will have a...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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...
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...

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.