Ask a Question related to Microsoft Access, Design and Development.
-
Joan #1
Find Record
I have an unbound dialog form with three textboxes on it for the user to
enter either a delivery date, a booking number or a breedercode(text). The
user wants to be able to choose a booking record by any of these three
fields and then view the booking records in datasheet view with the cursor
at the record they specified, or in the case of the date, at the first
record with the date that they entered. Below is the code that I used on
the txtBreeder After Update event:
Private Sub txtBreeder_AfterUpdate()
DoCmd.OpenForm "BrowseBookings", acFormDS
DoCmd.FindRecord Me.txtBreeder
Me.txtBreeder = ""
End Sub
This works as it is supposed to, however when I use the following
subprocedures for the other two textboxes, the datasheet form opens with the
cursor at the first record.
Private Sub txtBookingNum_AfterUpdate()
DoCmd.OpenForm "BrowseBookings", acFormDS
DoCmd.FindRecord Me.txtBookingNum
Me.txtBookingNum = ""
End Sub
Private Sub txtDelivery_AfterUpdate()
DoCmd.OpenForm "BrowseBookings", acFormDS
DoCmd.FindRecord Me.txtDelivery
Me!txtDelivery = ""
End Sub
Booking Number is the primary key of Bookings and I have Bookings indexed on
Booking Number, Delivery Date and BreederCode. The form's, "BrowseBookings"
record source is a query. What am I missing here?
Joan
Joan Guest
-
find row number of specific record in another query
How can I find the row number for a specific record from one query in the record set of another query? qryGetCompany returns 6 records at a time. I... -
Find record w/ conditions met in the same child record
I'll use 2 files to demonstrate my question. The first file is Animal. It has 4 fields. Id (serial number) ZooId (number) Name (text) Food... -
ADOXtra: find record
Does anyone know a good way to find a particular record in a recordset? I was hoping there would be something like rst.Seek(), but there isn't. ... -
Routine to find the correct pageindex for a given record.
I would like a button to find the current page index for a record where the datakey = some value. I can not seem to find any documentation to put a... -
create a find option to go to a record in a subform
i have a main form which contains a subform,i want it so the user tpes in the data and clicks find, it then automatically should take the user to...



Reply With Quote

