Entering Data Through A Query Combo

Jul 15, 2007

hi, i have a query which when the user selects a value in a combo box it pulls up the other details of the item, such as price.

i have noticed though that if i try and enter a new item into the list, through the combo on the form and then enter a price, it gives me error 3101 (something to do with not being able to find the record.

i assume this is because it is trying to locate the chosen item of data within the main table and pull up a price.

is there any way around this.

jjames

View Replies


ADVERTISEMENT

Entering Data Once

Aug 29, 2006

Hi There,

I have built a very basic DB and am running it alongside our existing Excel system of recording customer data.
I have transferred a lot of data from the Excel spreadsheet to the DB Table using Cut & Paste. For all future incoming data is there any way I can just enter it onto the Excel spreadsheet and it is automatically transferred to the DB table or am i consigned to entering two lots of the same data?

Best Regards
Keith:(

View 4 Replies View Related

Entering Data Into A Form

Jan 24, 2005

I have a form with a sub-form

eg

Purchase Order with main details on (Po Number, Supplier etc)
with a sub form carrying the line items to be ordered.

Table PO
Form PO
Table POSUB
Form POSUB

When entering main order details into Form PO, why do the fields in the related table(Table PO) immediately get populated when the the focus gets transfered to the sub-form (Form POSUB). with users quiting the database illegally (not by the cancel records button) the result is unwanted records in the Table PO.

What I want to do is complete the input fields in the main and sub forms without any records being commited to the tables until the "Save Record" button is pressed.

Thankyou

View 2 Replies View Related

Entering Data In A Form

Jul 4, 2005

I've been working on a database (attached) for a health trust. I think the relationships are right but I'm having a problem entering data. The subform shows the correct data but I can't figure out how to enter data using a form.

Can someone point me to a tutorial - I have searched the forums - honest!!

View 8 Replies View Related

Entering Data Twice For Verification

Feb 21, 2006

I have a db with the following fields: ID, Customer first name, customer last name, account number, date, time, score1, score 2.

My problem is this: We are running a promotion in which the customers receive a score. This score must be entered correctly as we are highly regulated, however the users are constantly fat fingering or miss typing the data. I want to force the score 1 and score 2 fields to match before the record can be saved.

Any suggestions on this would be greatly appreciated; I have to go in every night to correct these errors manually, which defeats the purpose of this db.

View 14 Replies View Related

Entering Multiple Data In A Form

Aug 8, 2006

I've designed a form to enter several items at the same time, eg, I want to enter aeveral company names on one form. The trouble is that when I enter data into one box, it appears in all the other boxes with the same field names, not allowing multiple data, is there a way around this?

View 2 Replies View Related

Manually Entering Data To A Record

Sep 15, 2005

Hi,

I am new to access programming. I want to do the following but don't know how :-

I have a form which is full of text boxes for people to enter data. I want them to enter the relevant data into those textbox's and then to click a SAVE button. Only when the SAVE button is pressed do I want the contents of the text boxes to go into the relevant fields in a table, i.e. they are all unbound.

Can anyone tell me how this is done please and possibly give an example code?

Thanks

View 4 Replies View Related

Find Record By Entering Data

Jan 23, 2006

I have a form which my client likes but he doesn't like to use a search button.

The two indexed fields are EMPLNO and LASTNAME.

By entering the employee number into the form and/or by entering the lastname onto the form you would get the record for that employee onto the form.

Its probably covered in the archive but I don't know what to look for.

Any suggestions?

View 4 Replies View Related

Populate Form By Entering Data

Jan 23, 2006

I have a form with two fields, EMPLNO and SURNAME.

By entering the employee number in EMPLNO or by entering the name in SURNAME I wish to get the correct record onto the form.

This is probably covered in the archive, but I'm not sure what to look for.

Any suggestions.

View 1 Replies View Related

Entering Data Using ComboBox For Search.

Nov 17, 2006

Hello,

Below is the main data entry form of my application. We disrtibute a product called MC Cloth to Shops to display. After a month we visit again and take stock of products sold, replenish and the shop pays for the products sold.
the Database keeps a record of the shop, products displayed, refilled, sold and respective payments.

The dtabase and the form is loaded in Handheld (PDAs) by the sales people who enter data during the visit and then synchronise with a master on return


http://affiliatesexcel.com/MC_main_form.jpg

I need to sum up values in one field for example MC Refill from the first record till the new record and show it in another field, for example MC Refill Total

Another Forum answer to my question about summing up values in one field to be used as default in a second field showed that a search needs to be done based on base field (in this case NAME of customer).

However since I use a COMBO BOX to enter this NAME field values and then select it from a pull down list to create new records, I have this value ONLY in the very first Record. All subsequent records have all other values where as the NAME value remain empty.


NameCust_IDRecordNumAddress
whs01ggggggggg
02qqqqqqq
03mmmmm
04nnnnnnnnn
05ooooooo
06pppppp
Kickstart08xyz
09898989898
012mmp
013qty

This makes the search function impossible based on the NAME value.
As a solution I would like to AUTOMATICALLY copy the NAME value to a second field (for example CUST_ID) during creation of each NEW RECORD so that I can then base my search on this field instead of the Name field (with empty values)


Currently I have the code below which works correctly for entering NEW Data and for recalling by Pull Down .
(I have tried a mehod which entered the values for
all records but this clutter up the Pull down with SAME
Name for repeated records making the PULL DOWN unusable.)

I have tried to copy the Name value to Cust_ID value for each new record but the code gives an error.

+++++++++++
Code:

Private Sub Name_Combo_AfterUpdate()
' This procedure tries to find the matching product's record.
' If the matching record is found, the procedure goes to it.
' If the record isn't found, the focus stays on the current record.

Dim Criteria As String ' This is the argument to the FindFirst method.
Dim MyRS As Recordset ' Recordset used to search.
Dim ComboName As String ' The name of the company to search for.
Const IDYES = 6

Set MyRS = Me.RecordsetClone
' Build the criteria.
ComboName = Chr$(34) & Screen.ActiveControl & Chr$(34)
Criteria = "[Name]=" & ComboName
' Perform the search.

MyRS.FindLast Criteria
If MyRS.NoMatch Then

Response = MsgBox("Could not find the Supplier Name: " & ComboName & " Do you wish to register a New Supplier: " & ComboName & " in this Database?", 4 + 48)
If Response = IDYES Then
MyRS.AddNew ' Create new record.
MyRS("Name") = Screen.ActiveControl
MyRS.Update ' Save changes.
MyRS.Move 0, MyRS.LastModified ' Go to new record
Me.Bookmark = MyRS.Bookmark ' Go to new record
Else
GoTo Endsub
End If
Else
MyRS.AddNew ' Create new record.
MyRS("Name") = Screen.ActiveControl
MyRS("Cust_ID") = MyRS("Name")
MyRS.Update ' Save changes.
MyRS.Move 0, MyRS.LastModified ' Go to new record
Me.Bookmark = MyRS.Bookmark ' Go to new record

'Me.Bookmark = MyRS.Bookmark

Dim recNo As Long

' for this to work there cannot be any RecordNumber with a value of 0
' it finds the highest record number for the name in the combo box
' and returns 0 and exits if no record found.
recNo = Nz(DMax("[RecordNum]", "Miracle_Cloth_Main", "[Cust_ID]='" & Me.Cust_ID & "'"), 0)
Debug.Print "RecordNo: " & recNo & " and Name: '" & Me.Name_Combo & "'"
If recNo = 0 Then
Exit Sub
End If
Me.Text90.SetFocus
DoCmd.FindRecord "'" & recNo & "'", acAnywhere, , acSearchAll, , acCurrent


End If
Endsub:
MyRS.Close


End Sub

+++++++++++++++++++++++
The question is is there an easier way to
achieve the summing function ?

Any help is greatly appreciated as always.

--------------------------------------------------------------------------------

View 14 Replies View Related

Forms :: Entering Data Into Drop Down Box?

Aug 29, 2014

I have made my first form and I did not to bad (?). I am thinking there is a faster way to enter data into my drop down box. I have set the tabs in the order I like but I have to tab to the next dropbox, then double click to open the box, then double click on my choice then double click on the next one. Is there a quicker way to go through 25 dropboxs?

View 6 Replies View Related

General :: Entering Data Into A Form

Feb 25, 2015

I have a form into which I scan a serial number in one of its text boxes, I can then select search and am presented with a report relating to that serial number. All simple so far. Now for the dilemma... The barcode I scan consists of 15 characters like so, 53423PP98765432, numbers-PP-numbers.. the problem I have is that I only need the numbers after the PP's, in other words the last 8 digits. My question is, is there something I could do to make the text box omit the first 7 characters automatically, leaving me with the 8 I need, instead of me having to curser into the middle and manually delete the first 7 characters. I only need the last 8 because of the link with another database that only uses the last 8 digits.

Also, on the device I scan, there are 2 other barcodes, above and below the one I need to scan. If I scan one of the others by mistake, I have to highlight and delete the results to try and scan the middle barcode. The other barcodes also have a different length to the one I need. So is it possible to write some code that says, ok, you have scanned a barcode with 10 or 12 digits, we don't want either of those, so deletes it for me to try again, but then recognizes the 15 digit barcode and auto deletes the first 7 characters as mentioned above.

View 7 Replies View Related

Tables :: Primary Key And Entering Data

Dec 12, 2012

I'm using Microsoft Access 2007

I have three tables: the 1st is for product's identification, the 2nd is for registered products, and the 3rd is for under-registration products

and the primary key for the three tables is the Registration Number
and there is a one to one relationship between the product identification and the registered products
and a one to one relationship between the product identification and the under registration products

What I want to do is to make an append query to move the under registration product to the registered product when its process is over.

One of my problems is with the primary key for the under registration products table, as they only get their registration number when the process is over. so how can I enter data into this table without the value of the primary key ?

View 14 Replies View Related

Entering Data Into Form To Diff Tables

Apr 21, 2006

Is it possible in Access to create one input form that includes fields from different tables.

I want to create a single form that dispenses input fields to separate tables, I don't see anything to make this happen. I know you can retrieve data from separate tables utilizing querys. But is it possible to input data into a single form to multiple tables ?

View 2 Replies View Related

Entering Data Into Input Mask - Frustrating

Dec 2, 2006

Hi guys,

not sure which section to post this so i hope here is ok...

ive made an input mask for a postcode field. problem is its really annoying having to click the beginning of the field to enter data in the correct area of the input mask. Is there a way to automatically set the cursor to the beginning of the input mask/field when it is clicked?

thanks, James

View 3 Replies View Related

Entering Data In A Field Through Filtered Records Only

May 4, 2006

uh.. I guess the title pretty much sums it up... Is there a way to enter data in a text box or something once, and have it applied to all the filtered records?

I have it set up so that we can sort by project number, and it displays only the invoices that havent been assigned to a bill (we recover the expenses form our parent company). I dont want to have to enter the same bill number to each of the filtered records individually.

Thanks

View 1 Replies View Related

Entering Data In Form And Updating A Querie

Mar 21, 2007

I apologies for this sinmple quesiotn to some of oyu, but being fairly new with Access, Im having problems when I update my form and then print our a querie, to obtain certain information, the new data is missing.

HOw can I make sure that my querie gets updated when I update my form.

Thanks you

View 6 Replies View Related

Forms :: Disabling A Control After Entering Data

Jan 16, 2015

I know some basic code to disable a control after updating but, I have 20 or so controls that I want that to happen to as the record is updated over time. Is there a way to group all those controls and have them evaluated after going dirty instead of having to code each control?

View 4 Replies View Related

General :: Entering Data And Then Seeing Result Of Calculations

Nov 13, 2014

I want to get access to create amazon shipments of 15kg in weight made up of a variety of products (the shipment goes to amazon)

So I have a products table with all the weights per unit for each SKU in it.

I've just created a simple 'form', where I input the SKUs I want to send to Amazon & the quantity (this updates a temporary table), therefore I end up with this in my temporary table....

SKU QTY
XX01 15
YY01 10

...& so on.

I've made a relationship from the SKU of the temp table (the table where I'm inputting my data to), back to the product table (where the weight per unit is held).

ok, what I seek, is that each time I enter a SKU & Quantity via my form, to see some onscreen data which tells me the ongoing sum of all SKU weights I've used. Therefore I guess my question is...what functionality in Access should I be using that allows me to input data & yet also provides me with onscreen real time data based on some 'behind the scenes' calculations? From my limited understanding, a form is to get data into Access, a report is to get data out....but I want to get data into Access & see the result at the same time!

View 1 Replies View Related

Entering Data In A Form - Update Autonumber On Two Tables?

Jul 19, 2006

Hello,

My first post is on something that is troubling me. I have a Form acting as the display and entry point for data for a contact list, which is composed of two Tables as follows:

Contact - (text fields including: first name, last name, phone number home, phone number work, etc)

Industry Role - (yes/no tick boxes including: film, photographer, audio engineer, producer, reporter, etc)

The two Tables have a one to one relationship based on the URN field which is an autonumber. My problem is that when someone enters say a name, and then ticks a box, the autonumber will add two entries because it seems to see the first table then the second tables as sequential, and not the same thing. How do i go about making a form that can enter new records the same autonumber for two connected Tables?

View 3 Replies View Related

Modules & VBA :: Entering Data Into A Table Using Record Field

Jan 19, 2015

I am creating a log in form, it checks the user name which is unique. if the user has entered a password, it shows only one password text box, they enter the password, if it is correct they enter the database, otherwise they return to the text box.

But if they have not entered a password before the form opens with two text boxes, one for the password and one to confirm the password is typed correct, if the are different a message box shows telling them that they are different, now is where i having problems, when they have typed the two passwords and they are correct i want them to save this password in the same record "Password" as the selected "username" record, I can find the "username" record by doing a Dlookup, easy, but i am stuck how to then save the password from the text box where the selected username record is.

My table "staff" has fields of "IDStaff", "FirstName", "Surname", "Password", "Username".

View 3 Replies View Related

Forms :: Entering Data Into Related Tables Using A Form

Sep 12, 2013

I have a form within my database in which the user will enter data which will go into 2 separate tables. These 2 tables (Job and Client) are related. At the moment I have a subform in which the user enters Job information, and the main form where the user will enter client information.

The problem being is that the 2 sets of data do not associate themselves with each other, despite being related (The Client will be related to a job number. A client can have many jobs but a job can only have one client etc). It has to be done manually in the table which is not ideal as the DB will be split and rolled out to users via Access Runtime. I have been working on this DB for a while now and the problem is most likely right in front of me but I cannot see it!

View 4 Replies View Related

Populating A Field Automatically OR Allowing Manual Entering Of Data

Sep 26, 2005

I have a simple table with two fields in that table called:

1. BankName
2. BankNumber

Each bank has a bank number. For example Bank XYZ and all of its branches have the same Bank Number 123. There are 5 banks I have listed in a combo list under the BankName field. I can also type in a different bank in that same field if it is not listed in the combobox list.

Now, I want the BankNumber to automatically populate based on what I choose under BankName. If the BankName is manually entered (for banks that are not in the combobox), or if the BankName field is blank, I want the BankNumber field to be able to enter a number manually.

For example, if I go to the BankName field and under the combobox I select Bank XYZ, i want the BankNumber field to automatically populate as 123. If the BankName has a bank name that was manually entered, i want BankNumber field to allow me to manually enter a number.

Thanks for ur help. I couldn't figure this simple request out.

View 5 Replies View Related

Tables :: Prevent User Entering A Return When They Paste Data

Feb 26, 2013

I've just come accross a problem where pasted data dissapears from view. It's caused by people being a bit careless and copying the line above (from word or notepad for example), which adds a return and then the data drops out of view.I really want to create a validation rule to make it impossible for returns to be pasted but I'm not sure how.

View 2 Replies View Related

Problem In Entering Data Into A Field In A Table. Screen Shot Provided

Mar 3, 2006

Hi,

im having difficulty adding data into a table which i created, i want to use two or more of the same Student_ID's into one field, while adding different data into another field Subject.

i attached a screen shot of the error.

i would appreciate any help

Many Thanks.

View 2 Replies View Related

Forms :: Entering Data Into Table - Syntax Error With Access 2013

May 20, 2013

I am pretty new to access and trying to create a form to enter data into a table. I keep getting a syntax error. Below is the part of code where I keep getting the syntax.

CurrentDb.Execute "INSERT INFO [Tb1 - Information]([Zone], [Controller], [Controller Type], [Panel], [CB #], [Controller Unit], [IP Address], [Modbus Address], [Sub Address/ HTC#], [PP Location], [Opp Priority],[ Startup Priority]) " & _
" VALUES('" & Me.Txtehtzone & "', '" & _
Me.Txtctrler & "','" & _
Me.TxtCB & "','" & _

[Code] ....

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved