473,385 Members | 1,642 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.

How to get a Table Field onto a form textbox..gotta be easy?

Hi

It's about 2 years since I last had to write a database and I'm having difficulty with something I feel should be very simple..

I have a table called tblNew_Equipment
with an AutoNumber field called Equipment_Number

There is a form called frmAdd_Equipment
When the Form is opened I want the next number from the table to be displayed in a TextBox on the form.

The form is unbound as there are other things I want there that have nothing to do with the equipment table.

I have tried using the Expression builder to put the table field into the TextBox when the Form is Open or Loaded with no joy. Have tried even opening a Recordset and loading the TextBox with a recordset and that will not seem to work either.

I need the next equipment number to load onto the form ,as the person entering the data needs to produce a sticker that will be attached to the new equipment item for future reference..Cant use serial numbers as there is the possibility of them not being unique.

Many thanks for any assistance.
Nov 14 '08 #1
2 1405
The form is unbound as there are other things I want there that have nothing to do with the equipment table.
Try making a query, joining the fields you need to show on the form, and base the form on the query.
Nov 14 '08 #2
Thanks mandanarchi

I ended up using a querydef that retrieves the value of the previous record (Equipment_Number) and then adding 1000 to it before displaying it in the TextBox field on the form and it seems to work O.K. so far.

(I needed to add the 1000 to it as the equipment numbering labels began at 1000).

Thanks again for having a look at it for me. Appreciated.
Nov 14 '08 #3

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

Similar topics

4
by: MT | last post by:
Hi all, this sounds like an easy enough thing to do, but after spending 45 minutes searching google and various javascript sites I can't find out how to make a textfield (textbox or whatever you...
1
by: Old Timer | last post by:
I wish to type in a number in my "Code" field, for instance 1060, I then wish the number 1060 to trigger an event that will fill in the next field (township field) For instance, 1060 brings up and...
2
by: Rob | last post by:
I'm just getting around to using pivot tables and charts. I find the Pivot table interface to be INCREDIBLY frustrating. When I view a table in Design view, then choose Pivot table view, I get...
7
by: Tempy | last post by:
Good morning, i have a table "tblQSPTotals" whith the fields "QspName" and "Project Parts". The first obviously has all the QSP name in and next to it the Project Parts which is total parts. I...
10
by: Regnab | last post by:
I'm making a database to record training that employees have recieved. For each training excercise, they recieve a mark between 1 and 3. Initially, when there weren't so many training elements, I...
117
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of...
4
by: rdemyan via AccessMonster.com | last post by:
I have to import building information from another system. I've decided to keep track of each set of data downloaded by including a Download_Date. That way I keep historical data. My table has...
9
by: john | last post by:
I have imported an Excel spreadsheet in Access. This table has 150 fields. The first field is 'user name', and all the other fields represent application names of which the value can be True of...
4
by: rszebras | last post by:
I inherited a database (as a novice at Access) and need to modify it to make it more efficient, i.e., the assignment form needs to autopopulate with the client's name, address, phone number, etc.,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.