Joe,
Sorry for not getting back to this sooner but I am covering for 2 folks who are out for extended time. I am just now getting to take a look at this again. The answer to question 1 is yes. I substituted the parameters line above and still nothing. If you or anyone else has any other...
I don't mean to sound stupid but where does my Form load fit into the above code? I want to try yours but can't figure out what to leave in and what to cut out of mine.
I took your suggestion and changed the adVarChar to adInteger. There is still no change. I also verified my query - there are 4863 records in it and I am trying to pull data on those employees. The EmployeeNumber field is a combo box and I am using the drop down list to select an employee...
Here is my entire code...there was a With earlier in the code (see first post)...Many thanks!
Private Sub EmployeeNumber_AfterUpdate()
Dim EmpNo As Integer
EmpNo = Me.EmployeeNumber.Value
Set prm = New ADODB.Parameter
Set cmd = New ADODB.Command
Set rs = New ADODB.Recordset
'Setup the...
Okay...now I am getting a Run time Error 3021: Either BOF or EOF is True, or the current record has been deleted. Debug starts at first line of form load. I have verified that the record is there.
Formload:
If Me.EmployeeNumber.Value = rs!EMPLOYEE Then
Me.[Last Name].Value =...
Hi,
I am just starting out in the world of VBA and I am creating a DB which is borrowing code from another DB (created from my programmer co-worker). Even though the functionality in each DB is the same, mine keeps coming up with a compile error. My co-worker is on vacation for 2 wks...I'd...
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.