Hi all,
Is there a way to loop through the fields in a DAO recordset without refering to the field names. I would like to be able to determine the number of fields in the recordset and loop through all the fields checking for nulls on the fly.
Thank you for your help.
Hi,
I have the following code in an on click event to check if all the fields in a query have data. A message box displays which fields are missing data. I continue to get a "Next withot For" error when this code runs. Any suggestions?
Private Sub cmdQueryTest_Click()
Dim db As...
Doesn't work right. This is what I have right now:
Private Sub cboPhySelector_NotInList(NewData As String, Response As Integer)
strTitle = "Physicians"
strMsg = "Would you like to add " & NewData & " to the " & strTitle & "?"
Response =...
Thanks Ken,
Let me be a little more specific. There are 3 tables:
tblPatients
PatientID (auto) (PK)
PtLastName
PtFirstName
tblPhysicians
PhysicianID (auto) (PK)
PhyLastName
PhyFirstName
tblPtPhyDetail
DetailID (auto) (PK)
PatientID (FK)
PhysicianID (FK)
Both the Patient and Physician...
I have a subform which shows demographics for a physician associated with a patient on the main form. There is a combo box to select a physician's name which then fills in the physician's demographics if the physician already exists. If a new name is entered in the combo box, the NotInList...
Cailo,
Are you opening the form from the database window or from another form?
If its from another form, create a command button and in the OnClick event procedure for that button put:
DoCmd.OpenForm frmName, , acNewRec
Where frmName is the name of your form.
If you want to open the...
Let me clarify things a little. I have two tables:
tblPatients
PatientID (PK) (auto number)
FirstName
LastName
PhysicianID (FK)
tblPhysicians
PhysicianID (PK) (auto number)
PhyFirstName
PhyLastName
There is a main form with based on tblPatients and a subform on the main form based on...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.