How to change the size of an input box in ms access 2003
the msg box was prompted with code :
StrInput = InputBox(Prompt:=strMsg, Title:="Locat开发者_开发技巧ion of Files", XPos:=2000, YPos:=2000)
im not sure how to change the size of the box. i want to because my strMsg is quite logn and doesnt look nice in a small box.
There's no way I'm aware of to change the size of the inputbox. You have a couple of choices:
1) Force line breaks with vbCRLF like this: `message = "This line will end here: " & vbcrlf & "This appears on a new line"
2) Create your own form to act an input box. Depending on your VBA ability you can make a form with a textbox, label, OK button, and cancel button. Have that form use the string in the form opening arguments (OpenArgs) as the prompt text. That will give you a generic, customizable inputbox.
精彩评论