473,770 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Auto Fill Form with a requirement

Making a very simple library circulation database for a school
project.

I have a Patron Information table(patronID, first name, last name,
phone) , an item information table (bookID, book title, authorfirst,
author last) and a circulation file (ID, bookID, patronID,
checoutdate, checkindate).

Circulation file is linked to others in a one to many fashion so that
I can have the same book checked out time after time.

I'm trying to make a form so that the library worker can select a book
that is checked out from a combo box and the information pertaining to
who checked it out and when, is filled in automagically. This only get
complicated because there will be the same BookID in the circulation
file multiple times as the book is checked out and in by many people.
The only difference is that the record that I am interested in has a
null value in the checkindate (i.e. it wasn't returned yet by that
patron). So really, I want the form to have the dropdown to show only
books that are checked out (i.e. have a null value in the checkin
date), and then autoupdate that record with the current patron who has
the book, ignoring all other records that have the same BookID but
have been checked in in the past.

I made a query looking for all circulation items that had a null value
in the checkindate, which indicates that it is checked out, and that
worked. But I can't seem to make a form to autoupdate based on only
that query. In fact, I don't know how to make a form autoupdate at
all:)

I don't know VB but I have some qbasic experience:) I have been
looking at other posts and noticed lines like Me.txtAddress1 =
rstTrusts![Address1]- no idea what the Me. function is or dlookup and
stuff like that. A dummy version would be helpful where you can
explain the code a little if you feel nice. Of course, giving me the
code free solution would be helpful too:)

I know this is a lot. I appreciate any help:)

Mike
Nov 12 '05 #1
1 5283
One of the three options on the first page of a Combo Box Wizard is at the
bottom of the list: "Find a record on my form based on the value I selected
in my Combo Box". You can specify the Row Source (that is what populates the
dropdown list, and should consist of the unique ID of the record plus enough
information for the user to select) of the Combo Box to be the Query you
describe and the Record Source of your Form to be the Table or Query with
the information you want to display on the Form.

Larry Linson
Microsoft Access MVP

"mikeybe" <mi******@hotma il.com> wrote in message
news:41******** *************** ***@posting.goo gle.com...
Making a very simple library circulation database for a school
project.

I have a Patron Information table(patronID, first name, last name,
phone) , an item information table (bookID, book title, authorfirst,
author last) and a circulation file (ID, bookID, patronID,
checoutdate, checkindate).

Circulation file is linked to others in a one to many fashion so that
I can have the same book checked out time after time.

I'm trying to make a form so that the library worker can select a book
that is checked out from a combo box and the information pertaining to
who checked it out and when, is filled in automagically. This only get
complicated because there will be the same BookID in the circulation
file multiple times as the book is checked out and in by many people.
The only difference is that the record that I am interested in has a
null value in the checkindate (i.e. it wasn't returned yet by that
patron). So really, I want the form to have the dropdown to show only
books that are checked out (i.e. have a null value in the checkin
date), and then autoupdate that record with the current patron who has
the book, ignoring all other records that have the same BookID but
have been checked in in the past.

I made a query looking for all circulation items that had a null value
in the checkindate, which indicates that it is checked out, and that
worked. But I can't seem to make a form to autoupdate based on only
that query. In fact, I don't know how to make a form autoupdate at
all:)

I don't know VB but I have some qbasic experience:) I have been
looking at other posts and noticed lines like Me.txtAddress1 =
rstTrusts![Address1]- no idea what the Me. function is or dlookup and
stuff like that. A dummy version would be helpful where you can
explain the code a little if you feel nice. Of course, giving me the
code free solution would be helpful too:)

I know this is a lot. I appreciate any help:)

Mike

Nov 12 '05 #2

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

Similar topics

1
2375
by: Maurice Mertens | last post by:
Does anyone know how to get an auto-filling combobox on a form? When I add a combobox to a form I can set the DropDownStyle property to DropDownList. This will make the combobox auto-filling. But the user then can't enter text in the combobox which isn't in the list. So I have to set the DropDownStyle property to DropDown to enable the user to enter text which isn't in the list. But unfortunately the combobox doesn't auto-fill the text...
8
3032
by: Prometheus Research | last post by:
http://newyork.craigslist.org/eng/34043771.html We need a JavaScript component which will auto-submit a form after a set period has elapsed. The component must display a counter that dynamically shows the minutes and seconds remaining before submission. We have a fairly tight deadline (by 5PM EST, Friday, June 25); we are using a "bounty" in the hope of getting a few good responses in a hurry. BOUNTY: $200 for first place, plus a $50...
3
2370
by: MatGyver | last post by:
I am going nuts trying to figure this out, any help will be appreciated. I have an existing table called "Parts". And in this table I have the following columns: "ID" "Part Number" "Part Description" "Part Cost" I am trying to build an order form that will have "Part Number" and "Part Cost" both on the form and in that forms specific table.
1
668
by: Benny | last post by:
Hello experts, Currently I am working on a web application using vs.net with c#. One of the project task is creating invoices. After the invoices are created, the user needs login to a government website and enter the same invoice information again. Since the information entered to the government website are the same as
8
30418
by: John | last post by:
Hi, I am developing an application using VB.Net and hope that the textbox can process features which are similar to auto-complete features in Window. For example, when user types "ap" in a textbox and the data associated to the textbox contains ("apple", "applet", "application"......), the application will suggest "apple" to the user to select and user can either select the suggestion or continue to type another word he disires. How...
1
4141
by: qwas2123 | last post by:
Hi, Im trying to build a form that within the form it has a feature that if you input data into a certain text box, from there, it will automatically fill the rest of the text boxes on the form based on the information of specific tables. Example : ID___________ Name "auto" ____________ Loc "auto" ____________ Rank "auto" ____________ etc . . . I...
0
2696
by: KelHemp | last post by:
Greetings, I've been using this site for lots of access help in the past, and it's very helpful! I have a new complexity for you all. Reworking a form to record 70-80 years of oil production on multiple leases, which have multiple wells within them. Most wells can fit on one printed page (one record), but in the case of overspill, we want to do the following: -Move to a new record and auto fill the LeaseName, LeaseNumber, Operator,...
3
3095
by: Steve67 | last post by:
I didn't see a search feature in these forums, so I couldn't look up this question and I am sure it is a common questions. I am trying to auto fill some information on an form. Here is what I have going on. I created a form that will fill in information on one table, but I also want information from another table on this form, but I want this infomation to automatically fill in was soon as I type lets say a part number. I tried to do this by...
2
4743
by: paulyXvpf | last post by:
Hi All, FACTS: > I've created a VB.NET 2005 form, with a SQL Server 2000 backend > The form has about 30 fields that populate 30 columns in the SQL database > The form has mostly text feilds, with standard info such as Customer, order Number, etc. > Im trying to autopopulate one of the feilds on the form, called Reference Number. > The SQL column on the backend auto increments fine > The Reference Numbercolumn has identity...
0
9617
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10257
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8931
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7456
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
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
3
2849
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.