value stick

  • Thread starter Thread starter LG
  • Start date Start date
L

LG

I have a field in a form name QCP_ID. I have used the after update event and
code builder with the following:
Private sub controlname_afterupdate()
me!qcp_id.defaultvalue = chr(34) & me!controlname & chr(34)
end sub

I got it to work for all the other fields like batch_id and platform but for
some reason just for the qcp_id it gives them a bug error. Any suggestions?
 
I have a field in a form name QCP_ID. I have used the after update event and
code builder with the following:
Private sub controlname_afterupdate()
me!qcp_id.defaultvalue = chr(34) & me!controlname & chr(34)
end sub

I got it to work for all the other fields like batch_id and platform but for
some reason just for the qcp_id it gives them a bug error. Any suggestions?

What's the datatype of qcp_id? And what's the error? If it's an Autonumber you
can't set its value, but should just let it increment automatically.
 
It's a text value and the error gives the box of end debug or help

Is there an error code or message? "box of end debug or help" doesn't convey
any specifics.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

query 5
Sum 1
Query-Report 1
Need help in printing vba code 0
Auto populate fields 5
Update/Insert Statement 6
Calculation query 7
Corrupt DB?? 12

Back
Top