Help with this simple code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

The below code fits on 1 line in VB:
If [Forms]![Waybillfrm].[level1] = 1 And [Forms]![Waybillfrm].[level2] = 0
And [Forms]![Waybillfrm].[level3] = 0 And [Forms]![Waybillfrm].[level4] = 0
And [Forms]![Waybillfrm].[level5] = 0

I must scroll all the way to the right to view it in its entirety. How can I
split this to a second line?

Thanks

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/com...-b286-8209c6580279&dg=microsoft.public.access
 
Use underscore (preceded by at least 1 space) as a line continuation:

If [Forms]![Waybillfrm].[level1] = 1 _
And [Forms]![Waybillfrm].[level2] = 0 _
And [Forms]![Waybillfrm].[level3] = 0 _
And [Forms]![Waybillfrm].[level4] = 0 _
And [Forms]![Waybillfrm].[level5] = 0
 

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

Back
Top