Sniper-BoOyA-
Registered User.
- Local time
- Today, 09:14
- Joined
- Jun 15, 2010
- Messages
- 204
Good Morning,
Currently i am working on a database which can be use to register incomming samples.
Ive made a form, where the user has to enter a serial number, which belongs to the project the sample is from.
But a lot of times a project has multipal samples.
Which gives me the following "problem":
- I need to make a new record.
- When i go to the new record the SerialNumber field is empty again.
My solution (well i thought it was)
- Add a checkbox on the form.
- Assign SerialNumber as a Public String in VBA
- On the afterupdate event of the checkbox i did the following:
- And my next idea was to give me.serialnumber the default value of the string serialnumber..
But it doesnt work at all. In fact the form wont even launch anymore.
Am i doing this completely wrong, or am i in the right direction?
Currently i am working on a database which can be use to register incomming samples.
Ive made a form, where the user has to enter a serial number, which belongs to the project the sample is from.
But a lot of times a project has multipal samples.
Which gives me the following "problem":
- I need to make a new record.
- When i go to the new record the SerialNumber field is empty again.
My solution (well i thought it was)
- Add a checkbox on the form.
- Assign SerialNumber as a Public String in VBA
- On the afterupdate event of the checkbox i did the following:
Code:
Select Case checkbox
Case True
SerialNumber=me.serialnumber.value
Case Else
SerialNumber = ""
End Select
- And my next idea was to give me.serialnumber the default value of the string serialnumber..
But it doesnt work at all. In fact the form wont even launch anymore.
Am i doing this completely wrong, or am i in the right direction?