How have you setup the form with the tab control?
The first thing after the creation the form was to add the tab
control, before I added the data.
What table or tables is it based on?
The table tblCustomer nothing special. In the mdb moving the
cursor in the listbox changes the record. In the mde nothing
happens.
Which pages of the tab control have subforms on them?
Pages 3,4,5,6
3 is linked tblCallNotes and works, however, it is shown with my
first Customer record.
SELECT tblCallNotes.[ID], tblCallNotes.[Customer_ID],
tblCallNotes.[CallType], tblCallNotes.[CallDate],
tblCallNotes.[CallNotes] FROM tblCallNotes ORDER BY
tblCallNotes.[CallDate] DESC;
4 DOES NOT work it based on this on parameter query
SELECT tblCustomer.Suburb1, tblCallNotes.CallDate,
tblCallNotes.CallType, Trim(tblCustomer.Title)+'
'+Trim(tblCustomer.First_Name)+' '+Trim(tblCustomer.Last_Name) AS
Cust_Name, tblCustomer.Target, tblCallNotes.CallNotes,
tblCallNotes.Customer_ID FROM tblCustomer INNER JOIN tblCallNotes
ON tblCustomer.ID = tblCallNotes.Customer_ID WHERE
tblCallNotes.CallDate BETWEEN
Forms!frmCustomer!frmCallPlanner!txtdate1 AND
Forms!frmCustomer!frmCallPlanner!txtdate2 ORDER BY
tblCallNotes.CallDate, tblCustomer.Target, tblCustomer.Suburb1;
5 6 Work.
Jeanette Cunningham MS Access MVP -- Melbourne Victoria
Australia
On 11/04/2010 2:36 PM, Jeanette Cunningham wrote:
Rewrite the code slightly like this:
Access 2007 creating a 2003 version
Actually I need something like this when I delete my test data
and hand over a empty data table I needed something that would
not give me an error when table was empty . I had something but
your code is much more elegant - thanks.
The code works fine with the MDB, However it does not fix my
problem with the MDE.
I have a Tab Control and first page of the Tab control has a
large list control with a search function.
The user finds the Customer, clicking on the next tab gives the
customer record for editing in the MDB but in the MDE instead
of providing selected customer from the Listbox it gives the
first record ever entered.
I am finding that there are a number of MDE errors.
This does not even work.
Private Sub cmdCopyAddress_Click() Me.Address2.Value =
Me.Address1.Value Me.cboSuburb2.Value = Me.cboSuburb1.Value
Me.State2.Value = Me.State1.Value Me.PostCode2.Value =
Me.PostCode1.Value End Sub
With Me.RecordsetClone .FindFirst "[ID] = "&
Me![LstDoctor] If Not .NoMatch Then Me.Bookmark = .Bookmark
End If End With
Including the .NoMatch test is always a good idea when using
FindFirst
Jeanette Cunningham MS Access MVP -- Melbourne Victoria
Australia
Me.RecordsetClone.FindFirst "[ID] = "& Me![LstDoctor]
Me.Bookmark = Me.RecordsetClone.Bookmark
This code does not seem to work in the MDE
Me.LstDoctor.value should be the ID value